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