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

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

merged 1 commit into from Jul 15, 2020


Copy link

@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

@alexgolesh alexgolesh left a comment

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 Jul 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

None yet

2 participants