[英]ASP.NET Web Forms Microsoft OAuth2 redirect_uri issue
I have created a new WebForms application using the standard template provided in VS2013. 我使用VS2013中提供的标准模板创建了一个新的WebForms应用程序。 I need to integrate Microsoft authentication into it. 我需要将Microsoft身份验证集成到其中。 After going through many tutorials/blogs I have finally.. 经过许多教程/博客后,我终于..
http://myxyzapp.azurewebsites.net/signin-microsoft
在该门户网站上,我将redirect_uri设置为http://myxyzapp.azurewebsites.net/signin-microsoft
I have Updated AuthConfig.cs as.. 我已将AuthConfig.cs更新为..
public static void RegisterOpenAuth() { OpenAuth.AuthenticationClients.AddMicrosoft( clientId: "----MyClientID----",clientSecret: "----MyClientSecret----"); }
However when I run the app and enter my Microsoft credentials to login I get the error message : Microsoft account is experiencing technical problems. 但是,当我运行该应用程序并输入我的Microsoft凭据登录时,我收到错误消息: Microsoft帐户遇到技术问题。 Please try again later. 请稍后再试。
The response header says: The provided value for the input parameter 'redirect_uri' is not valid. The expected value is 'https://login.live.com/oauth20_desktop.srf' or a URL which matches the redirect URI registered for this client application.
响应标头说: The provided value for the input parameter 'redirect_uri' is not valid. The expected value is 'https://login.live.com/oauth20_desktop.srf' or a URL which matches the redirect URI registered for this client application.
The provided value for the input parameter 'redirect_uri' is not valid. The expected value is 'https://login.live.com/oauth20_desktop.srf' or a URL which matches the redirect URI registered for this client application.
Can somesone please guide me where should I specify this redirect_uri ? 有人可以指导我在哪里指定这个redirect_uri吗? I have gone through many similar questions on SO and other forums but didn't get any specific answer involving WebForms and Microsoft OAuth2. 我在SO和其他论坛上经历了许多类似的问题,但是没有得到涉及WebForms和Microsoft OAuth2的任何具体答案。
使用您的Microsoft帐户登录,然后转到此处https://account.live.com/developers/applications/选择您的应用程序(或创建一个新应用程序),然后按“编辑设置”和“ API设置”,然后找到“重定向URL:“右侧窗格中的字段
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.