Page tree

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.

If you have a native mobile app where users need to authenticate, you can improve security by adding federated authentication to your app. If you will implement federated authentication you should use OAuth as an identity layer. OAuth is directly related to OpenID Connect (OIDC) since OIDC is an authentication layer built on top of OAuth 2.0. This Using this will allow your client to verify the identity of the end-user based on the authentication performed by an authorization server, as well as to obtain basic profile information about the end-user in the form of claims. SURFnet offers a code base you can embed in your code. Read on to learn more about adding federated authentication in your app.

Best practices of apps and user authentication

How to setup your user authentication in apps is well documented. The Internet Engineering Task Force (IETF) has published a list of recommended best practices for security and user experience around use of these specifications in native apps. Read the Ping Identity blog if you want to know more about this. The Carnegy Mellon CERT also published a blog about good app authentication.

How adding federated authentication improves security

Offering your customers federated authentication the right way means end-users visually only hand off their password to their home organizations, and see their familiar organization login page. Opposed to this are app-developers offering their own in app login page: by doing that, users get more vulnerable to phishing attacks, since they get used to inputting their passwords in all kinds of apps. App-developers offering ‘the right’ way of federated authentication can use this in their sales pitch to new customers!

Ways of adding federated authentication in your app

You have a couple of options to do great authentication in your app. Check out our SSO-Libraries and read more about this:

But my own in app login page looks far better!

One of the most heard objectives to ‘doing login right’ is that the user-flow or user-experience is worse than when you just offer input fields for a user id and a password. This might be true but the disadvantages don't outweigh that advantages. Please understand that companies like Google, Facebook and the Internet Engineering Task Force recommend 'their way' simply because this helps keeping the end user secure which is of the utmost importance.

More information

We blogged about our SURF software development kits to have federated login to native applications (the right way).


If you want more information, please email or contact us at


Page Tree
rootDocumentation for Service Providers