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!
Solved! Go to Solution.
Views
Replies
Total Likes
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.
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.
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:
How to use the tocken from POST MAN
Views
Likes
Replies