Example
As an example of a Single Sign-On (SSO) integration, we’ll use the integration with Magalu ID an identity provider that uses the OpenID Connect (OIDC) protocol.
For the integration with Magalu ID, they provided us the following information:
- OpenID Connect (OIDC) Discovery RUL: Looks like
https://id.mydomain.com/.well-known/openid-configuration
- Client ID
- Client Secret
And then they authorized our callback URL https://mydomain.com/login/callback
to finish the authorization process.
After all the setup, we enable a new login/signup page on our platform that shows the Magalu ID button to allow users to sign in with their existing credentials.
Magalu example flow
-
User enter the login/signup page on our platform.
-
User clicks on the Continue with Magalu button.
-
User is redirected to the Magalu ID login page.
-
User enters their credentials and clicks on the login button.
-
Magalu ID redirects the user back to our platform with an authorization code.