Allow configuration of redirect uri in client #88

Merged
merged 1 commit into from Apr 3, 2014

Projects

None yet

2 participants

@jgannonjr

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.

@heatonjb heatonjb merged commit a49758e into facebookarchive:master Apr 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment