Hi,
i set up sign in via azure ad b2c in AEM.
I oriented on this example implementation: https://www.albinsblog.com/2021/12/enable-user-authentication-for-aem-websites-azureadb2c-oauth.html
The implementation is basically working. Now i have to call a 3rd party API and pass the authentication token. Does anyone know how i can access the token of the currently logged in user in order to use it for the http requests which are sent from the AEM backend?
Also to me it is unclear if i can use the refresh token in order to retrieve a new access token as it seems that only the access token is stored.
Another question i have if i can use the claims in the JWT instead of closed user group as a mechanism to restrict user access to certain areas of my website.
Any suggestions or documentation regarding these topics would be useful for me.
Thank you.