Class OpenIDConnectionUtils
- java.lang.Object
-
- io.fabric8.kubernetes.client.utils.OpenIDConnectionUtils
-
public class OpenIDConnectionUtils extends Object
Utility class for OpenID token refresh.
-
-
Field Summary
Fields Modifier and Type Field Description static String
ACCESS_TOKEN_PARAM
static String
CLIENT_ID_KUBECONFIG
static String
CLIENT_ID_PARAM
static String
CLIENT_SECRET_KUBECONFIG
static String
CLIENT_SECRET_PARAM
static String
GRANT_TYPE_PARAM
static String
GRANT_TYPE_REFRESH_TOKEN
static String
ID_TOKEN_KUBECONFIG
static String
ID_TOKEN_PARAM
static String
IDP_CERT_DATA
static String
ISSUER_KUBECONFIG
static String
REFRESH_TOKEN_KUBECONFIG
static String
REFRESH_TOKEN_PARAM
static String
TOKEN_ENDPOINT_PARAM
static String
WELL_KNOWN_OPENID_CONFIGURATION
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
resolveOIDCTokenFromAuthConfig(Map<String,String> currentAuthProviderConfig)
Fetch OpenID Connect token from Kubeconfig, check whether it's still valid or not; If expired handle token refresh with OpenID Connection provider APIs
-
-
-
Field Detail
-
ID_TOKEN_KUBECONFIG
public static final String ID_TOKEN_KUBECONFIG
- See Also:
- Constant Field Values
-
ISSUER_KUBECONFIG
public static final String ISSUER_KUBECONFIG
- See Also:
- Constant Field Values
-
REFRESH_TOKEN_KUBECONFIG
public static final String REFRESH_TOKEN_KUBECONFIG
- See Also:
- Constant Field Values
-
REFRESH_TOKEN_PARAM
public static final String REFRESH_TOKEN_PARAM
- See Also:
- Constant Field Values
-
GRANT_TYPE_PARAM
public static final String GRANT_TYPE_PARAM
- See Also:
- Constant Field Values
-
CLIENT_ID_PARAM
public static final String CLIENT_ID_PARAM
- See Also:
- Constant Field Values
-
CLIENT_SECRET_PARAM
public static final String CLIENT_SECRET_PARAM
- See Also:
- Constant Field Values
-
ID_TOKEN_PARAM
public static final String ID_TOKEN_PARAM
- See Also:
- Constant Field Values
-
ACCESS_TOKEN_PARAM
public static final String ACCESS_TOKEN_PARAM
- See Also:
- Constant Field Values
-
CLIENT_ID_KUBECONFIG
public static final String CLIENT_ID_KUBECONFIG
- See Also:
- Constant Field Values
-
CLIENT_SECRET_KUBECONFIG
public static final String CLIENT_SECRET_KUBECONFIG
- See Also:
- Constant Field Values
-
IDP_CERT_DATA
public static final String IDP_CERT_DATA
- See Also:
- Constant Field Values
-
TOKEN_ENDPOINT_PARAM
public static final String TOKEN_ENDPOINT_PARAM
- See Also:
- Constant Field Values
-
WELL_KNOWN_OPENID_CONFIGURATION
public static final String WELL_KNOWN_OPENID_CONFIGURATION
- See Also:
- Constant Field Values
-
GRANT_TYPE_REFRESH_TOKEN
public static final String GRANT_TYPE_REFRESH_TOKEN
- See Also:
- Constant Field Values
-
-
Method Detail
-
resolveOIDCTokenFromAuthConfig
public static String resolveOIDCTokenFromAuthConfig(Map<String,String> currentAuthProviderConfig)
Fetch OpenID Connect token from Kubeconfig, check whether it's still valid or not; If expired handle token refresh with OpenID Connection provider APIs- Parameters:
currentAuthProviderConfig
- current AuthInfo's AuthProvider config as a map- Returns:
- access token for interacting with Kubernetes API
-
-