Configuring Auth0 with WSO2 API Manager for SSO

  1. Create an account in https://auth0.com/
  2. Download API Manager version 4.0.0 distribution from https://wso2.com/api-management/

Configuring users, application and rules in Auth0

Configuring Users

Creating application

Configuring Auth0, Service Providers in WSO2 API Manager

Changes in deployment.toml

[tenant_mgt] 
enable_email_domain= true
[apim.throttling]
username = "$ref{super_admin.username}@carbon.super"

[apim.throttling.jms]
username="admin!wso2.com!carbon.super"
password = "$ref{super_admin.password}"
[super_admin] 
username = "admin@wso2.com"
password = "admin

Add Auth0 as an external IDP

Configuring publisher, dev and admin portal application’s service provider configurations

Configuring scope mapping

  1. Map from an existing role
  2. Select custom scopes
  • Map from an existing role: since we are also adding scopes to a publisher =, we can use the same internal/publisher scopes by selecting “intenal/publisher” from the drop down.
  • Select custom scopes: you can select a number of custom scopes which you need to give it to the role.

Checking the flow

  • Sign in with the username or password or, continue with the google.
  • After successful login, you will get redirected to the publisher portal

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store