I have a rule which hits my database and adds a custom claim for ‘https://mycompany.com/user_uid’ set to the user’s uid. When I authenticate via SSO (ADFS), and then verify the token, it does not include the custom claim.
I need to get the user_uid from the access token in order for our api servers to be able to properly identify users.
I can get the access token from …/oauth/token endpoint. How do I insert a custom claim into this token?