Add error code matching GIT_EAUTH for authentication failures #210

Merged
michaeledgar merged 1 commits from master into master 2015-06-07 22:13:32 -05:00
michaeledgar commented 2015-06-07 18:25:21 -05:00 (Migrated from github.com)

My use case is a client which caches OAuth2 access tokens for authentication. When the access token expires, the client gets a new one using a refresh token.

Unfortunately, the only surefire way to know the access token has expired is to use it until authentication fails. So the client needs a way to know when authentication failed, and GIT_EAUTH seems to be the right error code to check for.

My use case is a client which caches OAuth2 access tokens for authentication. When the access token expires, the client gets a new one using a refresh token. Unfortunately, the only surefire way to know the access token has expired is to use it until authentication fails. So the client needs a way to know when authentication failed, and GIT_EAUTH seems to be the right error code to check for.
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: jcarr/git2go#210
No description provided.