AEM as OAuth2 Client: Access Token Payload and Cookie Decryption | Community
Skip to main content
November 15, 2023
Solved

AEM as OAuth2 Client: Access Token Payload and Cookie Decryption

  • November 15, 2023
  • 2 replies
  • 979 views


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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

kautuk_sahni
Community Manager
Community Manager
December 5, 2023

@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
DPrakashRaj
Community Advisor
DPrakashRajCommunity AdvisorAccepted solution
Community Advisor
December 5, 2023