I have created a new WebForms application using the standard template provided in VS2013. I need to integrate Microsoft authentication into it. After going through many tutorials/blogs I have finally..
http://myxyzapp.azurewebsites.net/signin-microsoft
I have Updated AuthConfig.cs as..
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. 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.
Can somesone please guide me where should I specify this 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.
使用您的Microsoft帐户登录,然后转到此处https://account.live.com/developers/applications/选择您的应用程序(或创建一个新应用程序),然后按“编辑设置”和“ API设置”,然后找到“重定向URL:“右侧窗格中的字段
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.