Add sign-in with Microsoft to a web app

N 1 Reputation point
2023-07-19T07:25:42.6233333+00:00

HI,

i am referring link for singlesign on https://learn.microsoft.com/en-us/azure/active-directory/develop/web-app-quickstart?tabs=windows&pivots=devlang-aspnet

azure team created oauth app for us.

but after authentication we are redirecting correct url but content is not displaying url page is empty.

Can someone please suggest

Microsoft Security Microsoft Entra Microsoft Entra ID
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. James Hamil 27,211 Reputation points Microsoft Employee Moderator
    2023-07-19T19:57:28.5+00:00

    Hi @N , there are 3 main reasons you could be having this issue. Please review the following and let me know if it resolves your problem:

    1. Verify that the RedirectUri in your application configuration matches the one registered in the portal.
    2. Make sure that the [Authorize] attribute is applied to the controller or action that requires authentication.
    3. Check if there are any JavaScript errors or network issues in the browser's developer console.

    Please let me know if you have any questions and I can help you further.

    If this answer helps you please mark "Accept Answer" so other users can reference it.

    Thank you,

    James


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.