Azure API Management Developer Portal OAuth 2.0 Redirect issues

Bandhit Suksiri 21 Reputation points
2022-07-13T07:02:46.72+00:00

It seem like OAuth 2.0 sign in for the developer portal has had some change recently.
I had it working on the last month and it broke today and I am getting the following error:

{
"code": "Unauthorized",
"message": {
"error": "invalid_client",
"error_description": "AADSTS500112: The reply address 'https://127.0.0.1/signin-oauth/code/callback/rdgconnect-b2b-oauth2' does not match the reply address 'https://<resource-name>.developer.azure-api.net/signin-oauth/code/callback/rdgconnect-b2b-oauth2' provided when requesting Authorization code.\r\nTrace ID: ace9d4bb-141f-478c-8cd8-4700afcb7600\r\nCorrelation ID: 64942574-9bee-45a4-a938-0e7a77ce2b84\r\nTimestamp: 2022-07-13 06:57:45Z",
"error_codes": [
500112
],
"timestamp": "2022-07-13 06:57:45Z",
"trace_id": "ace9d4bb-141f-478c-8cd8-4700afcb7600",
"correlation_id": "64942574-9bee-45a4-a938-0e7a77ce2b84"
}
}

I confirm that I checked OAuth 2.0 settings and it is working with Postman client today.

PS. It seem like it is similar to this question;
https://learn.microsoft.com/en-us/answers/questions/718922/api-management-developer-portal-redirect-http-issu.html

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,769 questions
0 comments No comments
{count} votes

Accepted answer
  1. JananiRamesh-MSFT 21,471 Reputation points
    2022-07-14T16:21:50.46+00:00

    Hi @Bandhit Suksiri Thanks for reaching out. I tried inhouse but i am unable to reproduce the issue. could you please re-publish your portal and try once again ?
    please share your APIM instance name to investigate further if you're facing the same issue even after publishing the portal.

    Let me know incase of further queries I would be glad to assist you.


0 additional answers

Sort by: Most helpful