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

Allow multiple OAuth providers to be used #295

Merged
merged 1 commit into from
Jul 30, 2015
Merged

Allow multiple OAuth providers to be used #295

merged 1 commit into from
Jul 30, 2015

Conversation

JPrevost
Copy link
Member

This provides support for Google and MIT OAuth, and thus likely others.

closes #292

auth.response.name_field="name"
auth.response.sub_field="sub"
auth.response.email_field="email"
auth.reponse.identity_provider="https://oidc.mit.edu/"
Copy link
Member Author

Choose a reason for hiding this comment

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

Oh wait, your comment made me realize that all of these values really need to be ENV overridable. Otherwise, someone needs to maintain this file out of version control or on their own fork or they won't be able to push to something like Heroku. Maybe it's worth breaking this out to it's own config file while adding in that mess of additional optional ENV overrides.

@JPrevost
Copy link
Member Author

@richardrodgers I've updated this PR to move auth config to it's own file and allow each setting to be overridden via ENV.

I'll squash the commits and merge if you are cool with this approach. If you have suggestions let me know and I'm happy to tweak further.

@richardrodgers
Copy link
Collaborator

I like it - it seems like a natural config set to carve out, and is easily included
👍

This provides support for Google and MIT OAuth, and thus likely others.

closes #292
JPrevost added a commit that referenced this pull request Jul 30, 2015
Allow multiple OAuth providers to be used
@JPrevost JPrevost merged commit 2e052e6 into master Jul 30, 2015
@JPrevost JPrevost deleted the google_auth branch July 30, 2015 17:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for non-MIT Oauth servers
2 participants