Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

AEMaaCS | Cloud Manager Service Credentials

Avatar

Community Advisor

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!

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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...

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.

jwt.png

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

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...

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.

jwt.png

Avatar

Community Advisor

@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/develo...

 

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...