realdoug / omniauth-salesforce

OmniAuth strategy for salesforce.com
MIT License
65 stars 90 forks source link

Allow dynamic redirect uri from provider configuration #17

Closed ychaze closed 9 years ago

ychaze commented 9 years ago

By adding this to the strategy you can pass the redirect uri directly in the configuration of the provider.

For example, with devise in devise.rb:

Devise.setup do |config|

  config.omniauth :salesforce, 'key', 'secret', {redirect_uri: 'http://localhost:3000/users/auth/salesforce/callback'}

end
ychaze commented 9 years ago

@realdoug Is it possible that you merge it so we get the fix in the gem ?

realdoug commented 9 years ago

@yann Sorry about that. Testing now.

realdoug commented 9 years ago

I can't seem to break this. Merged. Will cut a new gem soon.

ychaze commented 9 years ago

Thanks!

robvolk commented 7 years ago

@realdoug can you cut a new gem? would like to use an official version instead of referencing it from github