There are different ways to implement SimpleLogin on your application, depending on what framework/technologies you use.

From the user point of view, the flow is consisted of 2 steps:

  • user clicks on Connect with SimpleLogin button, gets redirected to SimpleLogin authorization page.

  • user authorizes your application, gets redirected back to your application and is authenticated. User can now have access to content restricted to authenticated user in your application.

SimpleLogin follows the protocols OAuth2 and OpenID Connect, the same standard that powers Facebook/Google/Apple login. There are 2 main usecases:

  • If you have access to your back-end (Php, Python, etc), we recommend using OAuth2 Authorization Code Grant Type which is more secure as the token is exchanged in a backend-to-backend call.

  • If you have a SPA (single-page application) or a mobile app, we recommend using the OAuth2 Implicit Grant Type where all data exchange happens via redirection and no back-end code is required.

By implementing OAuth2/OpenID Connect standard, SimpleLogin is compatible with almost all libraries that support these protocols. The integration, most of the time, consists of putting the right urls

SimpleLogin has also created some examples along with a step-by-step guide on different framework/libraires on our Github at SimpleLogin Github, it is possible that your favorite framework/library is already covered.

Before moving to the next step, this is the data that SimpleLogin will return to your app when user signs in:

"avatar_url": "temporary url or null",
"client": "your client name",
"email": "user-email@simplelogin.co",
"email_verified": true,
"id": 1,
"name": "User name"