ASP.Net redirecting to local host after authentication

后端 未结 5 685
萌比男神i
萌比男神i 2020-12-18 12:45

I just created a webform that is hosted in my Azure subscription. I set it up with authenication via my works Azure directory for authenticating users. In debug this works f

5条回答
  •  攒了一身酷
    2020-12-18 13:21

    I also had this issue and took these steps to resolve

    1. navigate to the app registration in AAD
    2. Open the manifest
    3. Change the ReplyUrl to the url of the app (e.g. http://appname.azurewebsites.net)

    Then I got the error

    Bad Request - Request Too Long HTTP Error 400. The size of the request headers is too long.

    Next I cleared all cookies from the browser, and this changed the error to just

    Bad Request

    So I went back to that ReplyUrl and changed it to https://appname.azurewebsites.net/.auth/login/aad/callback and now it appears to work.

    Note I also had to make sure I didn't have the site open in any other tabs before it started working

提交回复
热议问题