Im making an app and Im integrating Facebook's login. On the app page in the settings its asking for a valid oauth redirect uri.
My url scheme is fb followed by the numbers e.g. fb123456798 .
How do I make an uri based off that ? I need the uri so my app gets called back after user authentication.
Thanks !
Related
I created a public App for Amazon SP-API.
While updating the App, there were 2 mandatory fields. OAuth Login URI and OAuth Redirect URI. My concern is about the OAuth Login URI. I am not able to save with updating just the OAuth Redirect URI.
I would want to implement the Amazon SP-API Oauth2 only after the user has logged into my website.
When I save the application after filling the two fields, this is what is happening.
User Logs into Amazon.
Authorized the App.
He is shown a list of items the App requests access to.
There is a button at the bottom sign/up Login to App
Once user clicks on the button, it goes to the OAuth Login URI
My application has to do the additional step of routing to amazon_callback_uri.
While the below URL talks about the flow going to the OAuth Redirect URI.
https://developer-docs.amazon.com/amazon-business/docs/website-authorization-workflow
Can you please help me avoid this redirecting to the Login URI and rather redirect to OAuth Redirect URI?
Im trying to make my facebook login works with my application. This is my setup on facebook developer:
My applications is running correctly on my heroku server.
When I try to sign with Facebook I get this message:
URL Blocked: This redirect failed because the redirect URI is not whitelisted in the app’s Client OAuth Settings. Make sure Client and Web OAuth Login are on and add all your app domains as Valid OAuth Redirect URIs.
What Im missing here?
Thanks
I am having trouble signing into my web application. I am using oauth2 for sign in. After signing in with my gmail account it just brings me back to a blank white page with a google sign in button on the top left corner. the url reads: localhost:8000/login In my google api console I tried editing the authorized redirect URIs. And as well in the json file. But it doesn't seem to do anything. How do I direct the oauth2 login to the correct webpage after signing in?
console.developers.google.com/apis
I removed the 0.0.0.0 from the Authorized JavaScript origins in the google developer console.
Used Authorized JavaScript origins: http://localhost:8000
Authorized redirect URIs: http://localhost:8000/oauth2callback
And I added the GET method in addition to the POST method. #app.route('/gconnect', methods=['POST','GET']) in my application file. This worked for me.
I have a route that is currently behind the OAuth2 middleware. If someone hits it with a valid auth token, they get the content. If they hit it with an invalid token, they get a 400 error. So far, so good.
The issue is this route serves two purposes. It delivers content to users of a client app, who provide an auth token with their request. But it also serves as a link for sharing content with others. When someone clicks on that link in a browser, they will not supply any auth token. In this case, instead of a 400 error, I want to redirect them to a landing page with a smart banner for deep linking purposes. This way, if they don't yet have the app, it will give them the app store link to download it. If they have the app and are using their mobile device, the deep link will cause the client app to open and go to the specified content (using their auth token).
How do I separate out the OAuth2 behavior for an invalid token vs. no token provided?
I would like to people to log in on our Wireless Network by their Facebook or Twitter account. So I will use Oauth..
If the user authorized our App succesfully, he must me redirected to a our website. What is the most efficient way to do this?
In the case of Twitter (OAuth 1) you do this by supplying an oauth_callback parameter in the first request or by specifying a callback URL when registering your application with Twitter.
In OAuth2 (which Facebook uses) the flow is different but the parameter name is redirect_uri.
These are your only options.