Skip to content

Using OAuth in App #24405

Discussion options

You must be logged in to vote

There’s a few different ways of handling what you’re describing. You essentially have two problems:

  1. You’re authenticating a GitHub user
  2. You’re checking if the GitHub user previously authenticated is authorized to access a given repository

From your description, it sounds like you’re conflating the two when they’re really rather separate concerns.

When authenticating, you’re determining if the person accessing your app is who they say they are. But if someone with the right token accesses your app an hour later, a day later, or a month later doesn’t mean they are the same person that did the original authentication. Someone could have pilfered the token. Someone could be sitting at the u…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants