public class OpenIDConnectAuthenticator extends Object implements Authenticator
| Modifier and Type | Field and Description |
|---|---|
static String |
OIDC_CLIENT_ID
The client_id
|
static String |
OIDC_CLIENT_SECRET
Optional client secret
|
static String |
OIDC_ID_TOKEN
The id_token
|
static String |
OIDC_IDP_CERT_DATA
Optional IdP TLS Certificate
|
static String |
OIDC_ISSUER
The issuer
|
static String |
OIDC_REFRESH_TOKEN
The refresh_token
|
| Constructor and Description |
|---|
OpenIDConnectAuthenticator() |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Return the name of this authenticator, this should be the value that is also in a kubeconfig
file.
|
String |
getToken(Map<String,Object> config)
Get a token from this authenticator.
|
boolean |
isExpired(Map<String,Object> config)
Determine if this config is expired
|
Map<String,Object> |
refresh(Map<String,Object> config)
Refresh an expired token with a new fresh one.
|
public static final String OIDC_ID_TOKEN
public static final String OIDC_ISSUER
public static final String OIDC_REFRESH_TOKEN
public static final String OIDC_CLIENT_ID
public static final String OIDC_CLIENT_SECRET
public static final String OIDC_IDP_CERT_DATA
public String getName()
AuthenticatorgetName in interface Authenticatorpublic String getToken(Map<String,Object> config)
AuthenticatorgetToken in interface Authenticatorconfig - The configuration information for this authenticatorpublic boolean isExpired(Map<String,Object> config)
AuthenticatorisExpired in interface Authenticatorpublic Map<String,Object> refresh(Map<String,Object> config)
Authenticatorrefresh in interface AuthenticatorCopyright © 2020. All rights reserved.