Skip to content
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

Allow multiple configurations of a provider #32

Merged
merged 2 commits into from Sep 22, 2016
Merged

Allow multiple configurations of a provider #32

merged 2 commits into from Sep 22, 2016

Conversation

r-gr
Copy link
Contributor

@r-gr r-gr commented Jul 22, 2016

Addresses #31.

Revert back to behaviour of v0.2.0 where configuring a provider/strategy
multiple times allows it to be used in an application at multiple
different paths.

providers = if provider_list == :all do
all_providers
else
Map.split(all_providers, provider_list)
Keyword.split(all_providers, provider_list)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While we're touching this line could you refactor it as such:

all_providers
|> Keyword.split(provider_list)
|> elem(0)

@doomspork
Copy link
Member

@hassox could you take a look at this? This is fine by me but I'm not sure if there was a reason behind your previous change.

@doomspork
Copy link
Member

Thank you @RoryGreen, sorry for the delays.

@doomspork doomspork merged commit 062e114 into ueberauth:master Sep 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants