Skip to main content
Frances Silva
Lead Developer
Asked a question 2 years ago

Is there any way to do SSO using OAuth2 or Auth0 with Tribe?

Where am I?

In Tribe you can ask and answer questions and share your experience with others!

Siavash
Co-founder at Tribe

Tribe fully supports Auth0 and OAuth2 for both authentication and authorization.

For a more detailed tutorial, please click here48.  

You can easily install the OAuth2 SSO (Single Sign-On) app from Tribe's App Store. Then generate a Client ID, Client Secret, Authorization URL, and Token URL and insert it in this app settings. These 4 credentials are available in your main website/apps identity management system to control panel and should be generated on your side. How you can generate them, depend on what software you are using for creating your website or app or any environment that you want to connect to Tribe through SSO. 

Important Note: 
For the Scope field, add Openid Email Profile for OAuth2. 
If you are using OAuth you can leave it blank.
 

Additionally, you can enter the Sign-Up Url and Account Settings Url inside the App settings. For Auth0 you don't need to enter any information for User Info URL and JWT key.

You should also make sure you add the URL mentioned in the message (in blue) as callback URL in the Auth0 panel.

OAuth2 SSO Configuration
OAuth2 SSO Configuration

 

If you want to use the Auth0 access token to perform API calls in Tribe you should install the JWT Authorization app as well.

Auth0 supports both JWKS and Public Key verification methods for JWT tokens. To learn more about JWKS you can refer to Auth0 documentation247.

JWT Authorization Configuration
JWT Authorization Configuration

 

Please note that you can only use the JWT Authorization token if the user already logged in at least once using Single Sign-On before. Otherwise, since the user does not exist in Tribe yet, you'll receive a 401 'user_not_found' error.

In the end, please Enable the app and save the changes.