-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Call back URL can be "/auth" + name + "/callback" #1
Comments
what do you mean? |
The above lines are from index.js and it wasn't working for me because of localhost:3000 since I was trying with a domain name. So just using |
I see. Unfortunately that doesn't work for the other 3 providers, it causes url redirect error. Any thoughts? Could just have user pass in |
You can currently get around all that by just passing in callbackURL option in your server/index.js per strategy (as per the twitter & github examples), but that's a pain |
The derby-auth module already accepts the callbackURL in 'conf' from the app (example/src/server/index.coffee) The default of _.defaults(obj.conf, {callbackURL: "/auth/" + name + "/callback"}) already works for Facebook and Github. For Twitter I had to specify the callbackURL with the domain name in example/src/server/index.coffee, and that works. |
Sorry guys I'm lost with callbacks. Cannot understand how to obtain the access token, I suppose it should be the kind of callback function which receives the token after successful authentication As you may see I'm working with instagram startegy and derby-auth and cannot come out. Any help is welcome! |
Following line in index.js works fine with Facebook
_.defaults(obj.conf, {callbackURL: "/auth/" + name + "/callback"})
The text was updated successfully, but these errors were encountered: