Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 2
Message 1 of 3

What authentication flow should I use?

Solved! Go to Solution.

Hello, I have questions about how to implement github authentication. Basically I want to access data from github through my application, its structure will be divided into a backend service and a frontend. I believe you should retrieve the access token using the frontend service and send it to the backend service. Any suggestions on how I should do this?

2 Replies
Pilot Lvl 1
Message 2 of 3

Re: What authentication flow should I use?

@HerlanAssisThe OAuth flow needs to happen in your back-end service since it needs to communicate securely with GitHub's API using private tokens. With the architecture you're describing, your front-end should have a "Sign in with GitHub" button that links to some URL in your back-end service that'll kick off the OAuth process by redirecting to GitHub.

Copilot Lvl 2
Message 3 of 3

Re: What authentication flow should I use?

Thank you very much for your answer!