Skip to content
knowledge base

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

  1. User enter the login/signup page on our platform.

  2. User clicks on the Continue with Magalu button.

  3. User is redirected to the Magalu ID login page.

  4. User enters their credentials and clicks on the login button.

  5. Magalu ID redirects the user back to our platform with an authorization code.