Jwt to oAuth server-to-server migrataion | Community
Skip to main content
Level 2
August 6, 2024
Solved

Jwt to oAuth server-to-server migrataion

  • August 6, 2024
  • 2 replies
  • 1510 views

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 ?

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 tmj

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. 

 

 

 

 

 

 

 

 

 

 

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. 

 

 

 

 

 

 

 

 

 

 

Hope this helps

Thanks

Manik

 

2 replies

EstebanBustamante
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
August 6, 2024

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
Level 2
August 7, 2024

Hi @estebanbustamante 

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

EstebanBustamante
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
August 7, 2024

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
tmj
Adobe Employee
tmjAdobe EmployeeAccepted solution
Adobe Employee
August 7, 2024

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. 

 

 

 

 

 

 

 

 

 

 

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. 

 

 

 

 

 

 

 

 

 

 

Hope this helps

Thanks

Manik

 

Level 2
August 7, 2024

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

tmj
Adobe Employee
Adobe Employee
August 7, 2024

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