The token generated with IdentityService misses some attributes.
I set up IdentityService following the manual. I generate the token, when I pass it with bearer to a request it gives error 401 Unauthorized.
After comparing the token (in jwt.io) with another token from an environment where it actually works, I noticed that my token does not have the following attributes in the body payload:
"aud": "ApplicationAccess_c60a5f9ab2...",
"prop:SysAdminUnitId": "ee85afe3-eaf3-4cc3-965...",
"prop:Type": "ApplicationAccess",
"prop:OwnerClientId": "IdServiceUser",
"prop:ResourceId": "ApplicationAccess_c60a5f9ab..."
Could anyone help with this?
Like
Hello,
Please ensure that Creatio is properly connected to the Identity Service and that the diagnostics page displays all four green checkmarks.
Next, create an OAuth application in Creatio and use the Client ID and Client Secret generated for that application when obtaining the access token.
Make sure the user account under which the application operates has sufficient permissions to perform the required operations.
For detailed configuration steps, please refer to the official guide:
Connect the Identity Service to Creatio | Creatio Academy