Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Allow configuration of redirect uri in the client #49

Merged
merged 0 commits into from Dec 7, 2013

Conversation

jgannonjr
Copy link
Contributor

A redirect uri can now be passed in the options in the configure method:

Instagram.configure do |config|
  config.client_id = 'CI'
  config.client_secret = 'CS'
  config.redirect_uri = 'http://localhost:3456/oauth/callback'
end 

This will be used as the default redirect_uri. authorize_url and get_access_token no longer need to be passed a :redirect_uri option, however that option can still be passed to override the configured redirect_uri if one has been specified.

@shayne
Copy link
Contributor

shayne commented Feb 21, 2013

@jgannonjr mind rebasing?

@jgannonjr
Copy link
Contributor Author

Sorry Shayne, for some reason I totally missed your comment and just happened to check back in on this thread. Anyways, I rebased on the current master, cleaned up the added tests, and moved the changes into a topic branch. Github won't let me change the target branch of this pull request, so I had to make a new one, which is #88.

@albertotretti albertotretti merged commit ebad844 into facebookarchive:master Dec 7, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants