AdobeDocs / adobe-dev-console

Apache License 2.0
21 stars 123 forks source link

Issue in /src/pages/guides/authentication/ServerToServerAuthentication/migration.md #124

Closed Saboggarapu closed 5 months ago

Saboggarapu commented 9 months ago

The OAuth-Server-to-Server migration is successful. The credentials have changed from the service account. This is the guide used: https://developer.adobe.com/developer-console/docs/guides/authentication/ServerToServerAuthentication/migration/

Following the steps outlined in the Adobe.io documentation, I generated a JWT access token. However, when attempting to exchange the JWT for a Bearer Access Token using the provided request: ‘curl -X POST \ https://ims-na1.adobelogin.com/ims/exchange/jwt/?client_id=<Adobe.IO API KEY>&client_secret=<Adobe.IO Client Secret>&jwt_token=JWT_TOKEN’ I encountered an internal server error. A "500 Internal Server Error" indicates that there's an issue on the server side, and it's a generic error message that doesn't provide specific details about the problem. I tried it on the terminal window and Postman. Looks like an issue with the Adobe Server. { "error": "internal_error", "error_description": "Please try again later" } I'm also interested in understanding whether we can manually add/modify scopes within our credentials, for ex: exchange_jwt scope

theManikJindal commented 5 months ago

Hi @Saboggarapu once you migrate from Service Account (JWT) to OAuth Server-to-Server credential you can no longer use the exchange JWT endpoint to generate access tokens. Please read the OAuth Server-to-Server implementation guide for info on how to generate access tokens.