Is there a naming standard for REDIRECT URIS OAuth 2.0?
I just want to know if there is a REDIRECT URIS naming standard for: Twitter, LinkedIn, Microsoft, Facebook and Google when using OAuth 2.0?
Because if I write my domain like this: http://domain.com/account/external-signin.aspx every external login stops working except Twitter and Facebook. The account / external-signin.aspx name is the real url that I am working with and which I have to provide to each external login.
So Microsoft is giving this error: We are unable to fulfill your request Microsoft account is having technical problems. Please try again later.
LinkedIn: Invalid redirect_uri. This value must match the URL registered with the API key.
And Google 400. This is a bug. Error: redirect_uri_mismatch
If I remove the .aspx page extension it seems to work, although I am deliberately writing the wrong url, like http://domain.com/sign-google , http://domain.com/sign-microsoft , etc.
I am working with MVC5 and C #.
I think I missed a few things ...
thanks for the help
source to share
So here's the correct answer:
You don't choose the redirect URL. You must write your domain.com/ signin- {suppliername} in your application.
Example:
- Microsoft: https://domain.com/signin-microsoft
- LinkedIn: https://domain.com/signin-linkedin
- Google: https://domain.com/signin-google
Facebook and Twitter can work with your own redirect URL. After successful registration, the effect is immediate. Hope this helps someone.
Karine
source to share
This error means that you have a match with the URL you are returning and the return URL registered with the API server. When you register your application with the server (for Google: https://code.google.com/apis/console ), you must ensure that the URLs used match.
After that you don't get this error, I think on the server you set this property to, http://domain.com/account/external-signin (without aspx as you said it works without extension, but not with him). So try changing it on the server too.
source to share
For Linkedin add your url with "signin-linkedin" .eg if your url is http: // localhost : {portnumber} make sure it is registered as link http: // localhost : {portnumber} / signin-linkedin "and this will do the trick.
Happy Codding :)
source to share