Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Allow configuration of redirect uri in the client #49

merged 0 commits into from Dec 7, 2013


None yet
3 participants

jgannonjr commented Oct 6, 2012

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'

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 commented Feb 21, 2013

@jgannonjr mind rebasing?


jgannonjr commented Nov 13, 2013

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 Instagram#88.

@albertotretti albertotretti merged commit ebad844 into facebookarchive:master Dec 7, 2013

erinnorr pushed a commit to erinnorr/instagram-ruby-gem that referenced this pull request Feb 1, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment