public interface OAuthLoginProvider
Modifier and Type | Method and Description |
---|---|
OAuthUserInfo |
login(java.lang.String username,
java.lang.String secret)
Performs a login with an OAuth2 provider for Git over HTTP communication.
|
OAuthUserInfo login(java.lang.String username, java.lang.String secret) throws java.io.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.java.io.IOException
- if the login failed.