Host blazor webassembly application on IIS server with Azure Active Directory Authentication (OpenId)

Kuldeep Y 41 Reputation points
2022-09-20T15:26:41.92+00:00

I want to host my blazor webassembly application on IIS Server with Azure active directory authentication (openid connect)

Windows development Internet Information Services
Developer technologies .NET Blazor
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2022-09-21T08:00:12.407+00:00

    Hi @Kuldeep Y

    You can follow steps to deploy the blazor wasm app to IIS.

    1. Create a new app registration and add redirect url like below. 243316-image.png
    2. Create default blazor wasm project. 243373-image.png 243391-image.png 243317-image.png 243329-image.png 243382-image.png
    3. Then you can run it in your local, and it can work well.
    4. Create a site in your IIS, make sure you have installed URL Rewrite in your IIS.
    5. After you hosted your app in IIS, you need add redirect url in azure portal. 243344-image.png
    6. If you still face some issue, please turn off the firewall to check, and please don't forget to turn on it.

    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best Regards,
    Jason

    0 comments No comments

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.