public interface OAuthLoginProvider
Modifier and Type | Method and Description |
---|---|
OAuthUserInfo |
login(String username,
String secret)
Performs a login with an OAuth2 provider for Git over HTTP communication.
|
OAuthUserInfo login(String username, String secret) throws IOException
An implementation of this interface must transmit the given user name and secret, which can be either an OAuth2 access token or a password, to the OAuth2 backend for verification.
username
- the user's identifier.secret
- the secret to verify, e.g. a previously received access token or a password.IOException
- if the login failed.