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

Add sample for how to AuthN with B2C and Github #1

Merged
merged 1 commit into from
Jul 15, 2020
Merged

Conversation

c-w
Copy link
Contributor

@c-w c-w commented Jul 15, 2020

This pull request contains a sample of how to authenticate with Github via AAD B2C and Azure Functions EasyAuth which corresponds to the part of the architecture highlighted in red below:

Hackathon architecture

The authentication flow works like this:

  1. User goes to Functions app.
  2. EasyAuth redirects to AAD B2C.
  3. AAD B2C redirects to Github.
  4. User logs in.
  5. Github redirects to AAD B2C.
  6. AAD B2C redirects to EasyAuth.
  7. Functions app receives AAD B2C id token.
  8. Functions app uses id token to request Github access token from AAD B2C.
  9. Functions app makes request to Github API via access token.

If you want to test the flow, you can use my test endpoint.

Copy link
Contributor

@alexgolesh alexgolesh left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks for putting together the sample and flow!

@c-w c-w merged commit dd1ea70 into master Jul 15, 2020
@c-w c-w deleted the clewolff/github-auth branch July 15, 2020 19:12
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.

2 participants