Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.
SOLVED

AEM as OAuth2 Client: Access Token Payload and Cookie Decryption

Avatar

Level 1


We configured Adobe Experience Manager (AEM) as an OAuth 2 client using a custom provider and setting up the Adobe "Granite OAuth Application and Provider."
Overall, the configuration is working fine, but we have encountered a couple of challenges related to the access token payload and cookie encryption. We would appreciate your guidance on the following matters:

  1. Access Token Payload:
    We would like to access the properties present in the access token payload. Could you please provide us with information on how we can access the access token payload within our AEM implementation? Any guidance or code examples would be highly appreciated.

  2. Encrypted Cookie:
    We attempted to save the access token in a cookie for further usage. However, we noticed that the cookie is encrypted. We would like to decrypt the cookie to extract the access token when necessary. Can you please advise us on the appropriate method or steps to decrypt the cookie and retrieve the access token?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
2 Replies

Avatar

Administrator

@Preetpal_Bindra @Harwinder-singh @Gaurav_Sachdeva_ @DPrakashRaj @MayurSatav @Rohan_Garg @aanchal-sikka Can you please review this unanswered question? Appreciate your thoughts on this.



Kautuk Sahni

Avatar

Correct answer by
Community Advisor