This repository has been archived by the owner on Oct 24, 2022. It is now read-only.
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.
This is an alternate example of authentication example for #127.
It doesn't use any libraries, and instead builds a client ourselves. On the plus side, this allows us to easily configure our app to use MIT's pilot authentication service. On the downside, there are likely error states and such we'll still need to build in support for that a public library may already handle for us.
What this does:
/login/
and clicks theSign In
link they'll be taken to MIT's login page where they can signin and choose what information to return to our app (we ask for 3 types of info but they can choose to NOT allow specific pieces so we'll need to present dialogs for things where they make sense... like maybe we insist they provide an email even though MIT allows them to restrict that form our app, etc).