如何将 Azure 授权社交提供程序与静态 html angular 网站一起使用?
How to use Azure Authorization social providers with a static html angular website?
我已按照此文档了解如何使用 azure 社交授权提供程序进行 google plus 登录。 https://docs.microsoft.com/en-us/azure/app-service-mobile/app-service-mobile-how-to-configure-google-authentication
身份验证完成后,它会将应用程序发送到此页面:https://yourapp.azurewebsites.net/.auth/login/done
post_login_redirect_url 是重定向回您的 Web 应用程序并传递令牌的方法吗?
是否可以使用令牌重定向回您的静态 html 网站?
在深入研究 post_login_redirect_url 之后,看起来这个参数是这样附加的 /.auth/login/?post_login_redirect_url=/
然后您可以从 url 中获取令牌,因为它存储在哈希值中。
这个问题很有帮助:
获取我找到的令牌的另一种方法是调用 /.auth/me 以取回您的授权令牌数组。
我已按照此文档了解如何使用 azure 社交授权提供程序进行 google plus 登录。 https://docs.microsoft.com/en-us/azure/app-service-mobile/app-service-mobile-how-to-configure-google-authentication
身份验证完成后,它会将应用程序发送到此页面:https://yourapp.azurewebsites.net/.auth/login/done
post_login_redirect_url 是重定向回您的 Web 应用程序并传递令牌的方法吗?
是否可以使用令牌重定向回您的静态 html 网站?
在深入研究 post_login_redirect_url 之后,看起来这个参数是这样附加的 /.auth/login/?post_login_redirect_url=/
然后您可以从 url 中获取令牌,因为它存储在哈希值中。
这个问题很有帮助:
获取我找到的令牌的另一种方法是调用 /.auth/me 以取回您的授权令牌数组。