javascript - Uber OAuth Redirect URI error -


i'm trying develop web application on uber's api using javascript , node.js, , when trying authenticate user oauth 2.0, i'm getting error

given url not allowed application configuration: 1 or more of given urls not allowed app's settings.  must match website url or canvas url, or domain must subdomain of 1 of app's domains. 

this occurs after snippet of code, display login page specified uber:

app.get('/home', function(req, res){ var loginurl = "https://login.uber.com/oauth/authorize?response_type=code&client_id=" + client_id + "&redirect_uri=https://localhost:3000/login";    request(loginurl, function (error, response, body) {     if (!error && response.statuscode == 200) {       res.send(body) // show html google homepage.     }   }); }); 

in uber account, have added of following redirect url section under authorization:

http://localhost http://localhost:3000/login https://localhost:3000 https://localhost:3000/login 

one interesting thing see error in console of browser when page loads, pop error same message when click "login facebook" , url of popup error under facebook domain (https://www.facebook.com/v2.2/dialog/oauth?app_id=277064115737714&client_id=277064115737714&display=popup&domain=localhost&e2e=%7b%7d&locale=en_us&origin=1&redirect_uri=http%3a%2f%2fstatic.ak.facebook.com%2fconnect%2fxd_arbiter%2fpqapb......) redirect uri uber sending facebook?

what doing wrong?


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -