是否有重定向URI的OAuth 2.0命名标准? [英] Is there a naming standard for REDIRECT URIS OAuth 2.0?
问题描述
我只是想知道是否有在重定向URI命名标准:
Twitter的,LinkedIn,微软,Facebook和谷歌使用OAuth 2.0是什么时候?
I just want to know if there is a naming standard on REDIRECT URIS for : Twitter, LinkedIn, Microsoft, Facebook and Google when using OAuth 2.0?
由于,如果我写我的域名就像: http://domain.com/account/外部signin.aspx 的每一个外部登录停止除Twitter和Facebook合作。帐户的名称/外部signin.aspx是我和那我应该给每一个外部登录工作实际的URL。
Because, if I write my domain like that : http://domain.com/account/external-signin.aspx every external login stop working except Twitter and Facebook. The name account/external-signin.aspx is the real URL I'm working with and that I'm supposed to give to every external login.
所以,微软给这个错误:
我们无法完成您的请求
微软客户遇到技术问题。请稍后再试。
So, Microsoft give this error: We're unable to complete your request Microsoft account is experiencing technical problems. Please try again later.
LinkedIn:
无效REDIRECT_URI。此值必须与API密钥注册的URL匹配。
LinkedIn: Invalid redirect_uri. This value must match a URL registered with the API Key.
和谷歌
400.这是一个错误。错误:redirect_uri_mismatch
And Google 400. That’s an error. Error: redirect_uri_mismatch
如果我删除的页面扩展.ASPX它似乎工作,虽然我特意写了错误的URL如的http:// domain.com/sign-google , http://domain.com/sign-microsoft 等等...
If I remove the page extension .aspx it seems to work although I deliberately write a wrong url like http://domain.com/sign-google, http://domain.com/sign-microsoft etc...
我与MVC5和C#的工作。
I'm working with MVC5 and C#.
我想我错过了一些东西......
I think I missed a few things ...
感谢您的帮助。
推荐答案
所以最后,这里是正确的答案:
So finally, here is the correct answer:
这不是你该选择重定向URL。你必须写你domain.com/signin-{suppliername}在您的应用程序的管理。
It's not you that choose the redirect URL. You must write your domain.com/signin-{suppliername} in your app management.
例如:
- 微软: https://domain.com/signin-microsoft
- LinkedIn: https://domain.com/signin-linkedin
- 谷歌: https://domain.com/signin-google
- Microsoft : https://domain.com/signin-microsoft
- LinkedIn : https://domain.com/signin-linkedin
- Google : https://domain.com/signin-google
Facebook和Twitter可以用自己的重定向URL工作。一旦注册成功,效果立竿见影。希望这可以帮助别人。
Facebook and Twitter can work with your own redirect URL. Once successfully registered, the effect is immediate. Hope this can help somebody.
卡琳
这篇关于是否有重定向URI的OAuth 2.0命名标准?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!