Class TuleapAuthenticationApiAuthenticationClient
- java.lang.Object
-
- io.jenkins.plugins.tuleap_api.client.internals.TuleapAuthenticationApiAuthenticationClient
-
- All Implemented Interfaces:
AccessTokenApi,OpenIDClientApi,WebhookTokenApi
public class TuleapAuthenticationApiAuthenticationClient extends Object implements AccessTokenApi, OpenIDClientApi, WebhookTokenApi
-
-
Field Summary
Fields Modifier and Type Field Description static LoggerLOGGER-
Fields inherited from interface io.jenkins.plugins.tuleap_api.client.authentication.AccessTokenApi
ACCESS_TOKEN_API, ACCESS_TOKEN_CONTENT_TYPE, REDIRECT_URI, REFRESH_TOKEN_SCOPES
-
Fields inherited from interface io.jenkins.plugins.tuleap_api.client.authentication.OpenIDClientApi
DISCOVERY_API, USER_INFO_API
-
Fields inherited from interface io.jenkins.plugins.tuleap_api.client.authentication.WebhookTokenApi
WEBHOOK_CHECK_API
-
-
Constructor Summary
Constructors Constructor Description TuleapAuthenticationApiAuthenticationClient(PluginHelper pluginHelper, okhttp3.OkHttpClient client, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.auth0.jwk.UrlJwkProvider jwkProvider, TuleapConfiguration tuleapConfiguration, HeaderAuthenticationValidator headerAuthenticationValidator, AccessTokenValidator accessTokenValidator, UserInfoValidator userInfoValidator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckWebhookTokenIsValid(String validityToken)AccessTokengetAccessToken(String codeVerifier, String authorizationCode, String clientId, Secret clientSecret)StringgetProviderIssuer()List<com.auth0.jwk.Jwk>getSigningKeys()UserInfogetUserInfo(AccessToken accessToken)AccessTokenrefreshToken(AccessToken accessToken, String clientId, Secret clientSecret)
-
-
-
Field Detail
-
LOGGER
public static final Logger LOGGER
-
-
Constructor Detail
-
TuleapAuthenticationApiAuthenticationClient
@Inject public TuleapAuthenticationApiAuthenticationClient(PluginHelper pluginHelper, okhttp3.OkHttpClient client, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.auth0.jwk.UrlJwkProvider jwkProvider, TuleapConfiguration tuleapConfiguration, HeaderAuthenticationValidator headerAuthenticationValidator, AccessTokenValidator accessTokenValidator, UserInfoValidator userInfoValidator)
-
-
Method Detail
-
getAccessToken
public AccessToken getAccessToken(String codeVerifier, String authorizationCode, String clientId, Secret clientSecret)
- Specified by:
getAccessTokenin interfaceAccessTokenApi
-
refreshToken
public AccessToken refreshToken(AccessToken accessToken, String clientId, Secret clientSecret)
- Specified by:
refreshTokenin interfaceAccessTokenApi
-
getSigningKeys
public List<com.auth0.jwk.Jwk> getSigningKeys()
- Specified by:
getSigningKeysin interfaceOpenIDClientApi
-
getUserInfo
public UserInfo getUserInfo(AccessToken accessToken)
- Specified by:
getUserInfoin interfaceOpenIDClientApi
-
getProviderIssuer
public String getProviderIssuer()
- Specified by:
getProviderIssuerin interfaceOpenIDClientApi
-
checkWebhookTokenIsValid
public boolean checkWebhookTokenIsValid(String validityToken)
- Specified by:
checkWebhookTokenIsValidin interfaceWebhookTokenApi
-
-