Integration with Mobile Identity
This how-to helps you get up and running by integrating the External Authorization module with the Mobile Identity module.
The Mobile Identity module is a complete solution for single sign-on (SSO) and customer self-service within your organization. The OneWelcome Identity Platform provides an extension to Mobile Identity that enables the enrichment of its access tokens with a claim based on your users' relationships (see relationship-based access control). All you need to do is to set up a Mobile Identity web hook.
Set up the OneWelcome Mobile Identity web hook
Mobile Identity setup
Step 1. Create a web hook
-
Log in to your Mobile Identity account.
-
Go to Configuration > System > Web Hooks.
-
Click Add Web Hook Configuration.
-
Add the following values to complete the web hook setup:
Field name Value Description Name ReBAC
WebHook type Customize Token WebHook base uri https://hooks.scaledaccess.com/{tenant}/onewelcome
Your tenant code provided by the OneWelcome Identity Platform (see account details). This code can be found in manage.scaledaccess.com after your sandbox environment is set up. Authentication method Basic Authentication Username Your tenant code Password The API key connected to your tenant. Create and use the API key for your tenant (see set up webhook configuration) -
Click Save.
Step 2. Activate the web hook
-
Go to Configuration > Web Clients.
-
Click Edit on your configured web client.
-
Find the Customize Access Token Web Hook options and select the ReBAC web hook.
-
Click Save (and Save again to finish editing).
Obtaining and using an enriched access token
Step 3. Request a OneWelcome Identity Platform access token
-
Use your regular method to request an access token.
-
Confirm that the access token contains the
https://scaledaccess.com/relationships
claim (such as by copying the token into jwt.io). If the user has no relationships (yet), the array will be empty.
Step 4. Make access decisions based on relationships
-
Use the enriched access token to access a protected resource at your API service.
-
The API service must provide a mechanism to grant or deny access based on the
https://scaledaccess.com/relationships
claim.