Expand my Community achievements bar.

SOLVED

Jwt to oAuth server-to-server migrataion

Avatar

Level 2

Hi Team,

 

I am getting migration mail for a project AdvancedNetworkingSMTP, which is currently using JWT token. This project is using for sending the emails. 
Now I have gone through the document provided by Adobe for migration.
But my questions are

1. After migrating how can I test now my application is using oAuth server-to-server for creating tokens ?
2. Do I need to make changes in codebase also ?
3. Is there any tab inside project in developer console mode where I can check the token created is by oAuth server-to-server or by JWT ?

1 Accepted Solution

Avatar

Correct answer by
Employee
Employee

Hi @AkshaySwamiii, great questions - 

 

After you start the migration, you can generate access tokens using both JWT and OAuth Server-to-Server credentials. The idea is that you will change your application code to generate tokens using the OAuth Server-to-Server credentials. 

Migration not started. Click on Add new credential.Migration not started. Click on Add new credential.

 

 

 

 

 

 

 

 

 

 

Once you make the changes in your codebase, you can test your application to see if it's working correctly and deploy it to your production environment. At this point, your code will ideally be using OAuth Server-to-Server credentials to generate access tokens. 

 

To confirm so, go back to your project and click on Review and Delete. This will launch a modal that tells you when your old and new credentials were last used. 

 

Migration started, change your code to use OAuth Server-to-Server credential.Migration started, change your code to use OAuth Server-to-Server credential.Click on Review and delete to view  when the old and new credentials were last usedClick on Review and delete to view when the old and new credentials were last used

 

 

 

 

 

 

 

 

 

Hope this helps

Thanks

Manik

 

View solution in original post

8 Replies

Avatar

Community Advisor

Hi, 

If you have admin rights you will be able to see here: https://developer.adobe.com/console/projects all the projects that are using JWT tokens with a red warning label. 

Hope this helps



Esteban Bustamante

Hi @EstebanBustamante 

I have the developer console access. Kindly go through my question once again and then give me related suggestion.
Thanks

Avatar

Community Advisor

Sorry, I missed those questions, @AkshaySwamiii. I didn't notice them—did you update your question? In any case, I think @tmj has already covered everything.

 

Once you generate the OAuth token, you just need to find the place in your code where authentication is done using JWT and replace it with the new token you generated.



Esteban Bustamante

Avatar

Employee
Employee

> Once you generate the OAuth token, you just need to find the place in your code where authentication is done using JWT and replace it with the new token you generated.

 
To be clear, you must replace the code to generate access tokens using OAuth Server-to-Server credentials. Please don't replace it with a token (a single token will expire in less than 24h.

Avatar

Community Advisor

Yup, thanks for the clarification



Esteban Bustamante

Avatar

Correct answer by
Employee
Employee

Hi @AkshaySwamiii, great questions - 

 

After you start the migration, you can generate access tokens using both JWT and OAuth Server-to-Server credentials. The idea is that you will change your application code to generate tokens using the OAuth Server-to-Server credentials. 

Migration not started. Click on Add new credential.Migration not started. Click on Add new credential.

 

 

 

 

 

 

 

 

 

 

Once you make the changes in your codebase, you can test your application to see if it's working correctly and deploy it to your production environment. At this point, your code will ideally be using OAuth Server-to-Server credentials to generate access tokens. 

 

To confirm so, go back to your project and click on Review and Delete. This will launch a modal that tells you when your old and new credentials were last used. 

 

Migration started, change your code to use OAuth Server-to-Server credential.Migration started, change your code to use OAuth Server-to-Server credential.Click on Review and delete to view  when the old and new credentials were last usedClick on Review and delete to view when the old and new credentials were last used

 

 

 

 

 

 

 

 

 

Hope this helps

Thanks

Manik

 

Avatar

Level 2

Hi @tmj 
thanks for your detailed reply.
One more question, what are the changes I need to do in my codebase ?

Avatar

Employee
Employee

You're welcome! So, your codebase must be generating access tokens using a JWT credential. You need the access token generation logic to use an OAuth Server-to-Server credential instead. 

 

See the implementation guide.

Thanks
Manik