How to set Azure Authentication custom login return url?

前端 未结 2 1000
孤城傲影
孤城傲影 2020-12-10 18:00

I followed this article https://azure.microsoft.com/en-us/blog/announcing-app-service-authentication-authorization/ to set up Azure authentication for my MVC app. First I tu

2条回答
  •  我在风中等你
    2020-12-10 18:45

    You can use the post_login_redirect_url query string parameter to do this.

    For example, if you want to automatically navigate the user to /welcome.html after logging in, you can set your login redirect to ~/.auth/login/aad?post_login_redirect_url=/welcome.html, and the user will be redirected to this page instead of the generic welcome page.

提交回复
热议问题