AEMaaCS | Cloud Manager Service Credentials | Community
Skip to main content
Jineet_Vora
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
July 19, 2022
Solved

AEMaaCS | Cloud Manager Service Credentials

  • July 19, 2022
  • 2 replies
  • 1101 views

I am generating access_token using Service Credentials from AEMaaCS Developer Console.

I am successfully able to get the access_token using Service Credentials by generating the JWT token a below:

 

{ token_type: 'bearer', access_token: 'accessTokenHere', expires_in: 86399998 }

 

 

Question: What does expires_in: 86399998 signify? Is it time in milliseconds or something else as I couldn't find this in documentation anywhere?

Thanks!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by lukasz-m

Hi @jineet_vora,

The expires_in value is in milliseconds. Here is reference to documentation - https://experienceleague.adobe.com/docs/experience-platform/landing/platform-apis/api-authentication.html#generate-an-access-token

I am not sure if above document is 100% related to your case or the way how you generated the token. But looking into JSON format it seems to be exactly the same with the one you have shared. I think that below rules will apply to multiple Adobe services that are using JWT but maybe not all of them are documented yet.

2 replies

lukasz-m
Community Advisor
lukasz-mCommunity AdvisorAccepted solution
Community Advisor
July 19, 2022

Hi @jineet_vora,

The expires_in value is in milliseconds. Here is reference to documentation - https://experienceleague.adobe.com/docs/experience-platform/landing/platform-apis/api-authentication.html#generate-an-access-token

I am not sure if above document is 100% related to your case or the way how you generated the token. But looking into JSON format it seems to be exactly the same with the one you have shared. I think that below rules will apply to multiple Adobe services that are using JWT but maybe not all of them are documented yet.

Jagadeesh_Prakash
Community Advisor
Community Advisor
July 19, 2022

@jineet_vora 

 

yes it will be in millisecounds. the AEM as a Cloud Service credentials expire after a year. To ensure service continuity, developers have the option of refreshing the credentials, extending their availability for an extra year. Refer to below links

https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/implementing/developing/generating-access-tokens-for-server-side-apis.html?lang=en#the-server-to-server-flow

 

How to use the tocken from POST MAN

https://experience-aem.blogspot.com/2021/07/aem-cloud-service-get-adobe-ims-jwt-and-aem-access-token-using-post-man-aem-sso.html