Inside default OAuth2 Access Token Modification Script in IdC, we have the following object available.
- scopes - Set (6).
-
Always present, the requested scopes.
For example my object equals to:
[openid, profile, customScope]
and let’s say i want to remove “customScope” fields from released scopes in the access_token.
No matter what I have tried I can’t modify scopes object.
Does anyone have an example of how scopes can be added/removed programmatically inside default AM script?