I have asp.net mvc 5 integrated with Azure Single SignOn but I'm facing an error reply url AADSTS500112 error

Rakesh T. Sasi 0 Reputation points
2024-04-27T16:36:35.66+00:00

{"error":"invalid_client","error_description":"AADSTS500112: The reply address 'http://test.edunet.bh/account/testredirect' does not match the reply address 'https://test.edunet.bh/account/testredirect' provided when requesting Authorization code. Trace ID: 20ff6200-fe73-43f9-8500-406476b42a01 Correlation ID: 7d7a03e4-ce2f-45aa-920a-24bf16933bb4 Timestamp: 2024-04-27 16:29:20Z","error_codes":[500112],"timestamp":"2024-04-27 16:29:20Z","trace_id":"20ff6200-fe73-43f9-8500-406476b42a01","correlation_id":"7d7a03e4-ce2f-45aa-920a-24bf16933bb4"}: Unknown error

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,638 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Carlos Solís Salazar 16,696 Reputation points MVP
    2024-04-29T22:21:06.59+00:00

    you are trying to authenticate from 'http://test.edunet.bh/account/testredirect'

    and you have set in your app registration the URL 'https://test.edunet.bh/account/testredirect'

    Look at that one uses an HTTP page and the other an HTTPS page.

    You must use the same URL.

    Hope this helps.

    Remember accepting the answer if it helps!