Package org.wildfly.security.http.oidc
Class OidcClientContext
- java.lang.Object
-
- org.wildfly.security.http.oidc.OidcClientContext
-
public class OidcClientContext extends Object
- Author:
- Farah Juma
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
OidcClientContext.OidcClientConfigurationDelegate
This delegate is used to store temporary, per-request metadata like request resolved URLs.
-
Field Summary
Fields Modifier and Type Field Description protected OidcClientConfiguration
oidcClientConfig
protected OidcClientConfigurationResolver
oidcConfigResolver
-
Constructor Summary
Constructors Constructor Description OidcClientContext()
OidcClientContext(OidcClientConfiguration oidcClientConfig)
Construct a new instance.OidcClientContext(OidcClientConfigurationResolver oidcConfigResolver)
Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getAuthServerBaseUrl(OidcHttpFacade facade, String base)
OidcClientConfiguration
resolveDeployment(OidcHttpFacade facade)
For single-tenant deployments, it complements KeycloakDeployment by resolving a relative Auth Server's URL based on the current request For multi-tenant deployments, defers the resolution of KeycloakDeployment to the KeycloakConfigResolver .protected OidcClientConfiguration
resolveUrls(OidcClientConfiguration deployment, OidcHttpFacade facade)
-
-
-
Field Detail
-
oidcClientConfig
protected OidcClientConfiguration oidcClientConfig
-
oidcConfigResolver
protected OidcClientConfigurationResolver oidcConfigResolver
-
-
Constructor Detail
-
OidcClientContext
public OidcClientContext()
-
OidcClientContext
public OidcClientContext(OidcClientConfiguration oidcClientConfig)
Construct a new instance.- Parameters:
oidcClientConfig
- the OpenID Connect client configuration to use
-
OidcClientContext
public OidcClientContext(OidcClientConfigurationResolver oidcConfigResolver)
Construct a new instance.- Parameters:
oidcConfigResolver
- the resolver to be used to obtain the OpenID Connect client configuration
-
-
Method Detail
-
resolveDeployment
public OidcClientConfiguration resolveDeployment(OidcHttpFacade facade)
For single-tenant deployments, it complements KeycloakDeployment by resolving a relative Auth Server's URL based on the current request For multi-tenant deployments, defers the resolution of KeycloakDeployment to the KeycloakConfigResolver .- Parameters:
facade
- the Request/Response Façade , used to either determine the Auth Server URL (single tenant) or pass thru to the KeycloakConfigResolver.- Returns:
-
resolveUrls
protected OidcClientConfiguration resolveUrls(OidcClientConfiguration deployment, OidcHttpFacade facade)
-
getAuthServerBaseUrl
protected String getAuthServerBaseUrl(OidcHttpFacade facade, String base)
-
-