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

{"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,806 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Carlos Solís Salazar 16,781 Reputation points MVP

    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!