Don't Merge! Proof of Concept: Using the Boost Site as an OAuth Provider #897
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Ticket: #887. CCC @frankwiles @sdarwin
Task: Demonstrate how to use Boost as an OAuth provider by creating an OAuth app in the staging site, then adding Boost Staging as a social provider (like Google and GitHub) in my local site.
These resources were helpful in setting up Boost Staging as an OAuth provider in my local environment:
Note: I know we won't have a "Log in with Boost!" button on the sign up page -- that would be odd. It was the best way to test, though.
Instructions
providers
appOAuth2Provider
inproviders/provider.py
to create the custom Boost providerOAuth2Adapter
inproviders/views.py
to create the custom Boost provider login flowOutstanding problems
The oauth toolkit default is now to use PCKE: https://django-oauth-toolkit.readthedocs.io/en/latest/getting_started.html#authorization-code, which I am having trouble implementing. There is a setting we can add to turn it off, but PCKE is the new standard. Update: After talking with Frank, it seems we'd probably disable PCKE via a setting.
Video:
boost_oauth_provider_progress.mov