Package dev.dsf.bpe.v2.client.oidc
Interface OidcClient
public interface OidcClient
Client Credentials Grant implementation to receive access tokens from an OIDC provider.
-
Method Summary
Modifier and TypeMethodDescriptionchar[]
char[]
getAccessToken
(Configuration configuration, Jwks jwks) getJwks()
getJwks
(Configuration configuration)
-
Method Details
-
getConfiguration
- Returns:
- OIDC
Configuration
resource - Throws:
OidcClientException
- if response status not 200 OK, response issuer not matching base-url or response supported grant types does not include"client_credentials"
-
getJwks
- Returns:
Jwks
resource- Throws:
OidcClientException
- if response status not 200 OK
-
getJwks
- Parameters:
configuration
- notnull
- Returns:
Jwks
resource- Throws:
OidcClientException
- if response status not 200 OK
-
getAccessToken
- Returns:
- access token
- Throws:
OidcClientException
-
getAccessToken
- Parameters:
configuration
- notnull
jwks
- notnull
- Returns:
- access token
- Throws:
OidcClientException
- if response status not 200 OK, OIDC provider does not support client credentials grant (Keycloak: service accounts roles) or returned access token could not be verified
-