In case you are using Identity Management and also PageSuite, you might need to check the user's access in Piano first before granting them access to your PageSuite application as well.
In order to get the user's access token, you can follow the steps described here. Afterward you can use the following Piano API endpoint:
https://api.piano.io/api/v3/access/check
Other required parameters are the aid, rid (resource ID) and api_token.
If you are utilizing Global Mode and Cross-App Access, you need to make sure you are passing the parameter cross_app=true.
A brief schema of how this will work can be found below:
-
A user exists in App A and App B
-
Access to the resource is active in App A
-
You are also calling the Piano API endpoint
publisher/user/access/checkfor App B. If you use thecross_app=trueparameter, the API will return an active access (the one from App A), but if you don't use this parameter, the API will returnaccess:null.