Package org.wildfly.security.http.oidc
Class OidcClientContext
java.lang.Object
org.wildfly.security.http.oidc.OidcClientContext
- Author:
- Farah Juma
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classThis delegate is used to store temporary, per-request metadata like request resolved URLs. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected OidcClientConfigurationprotected OidcClientConfigurationResolver -
Constructor Summary
ConstructorsConstructorDescriptionOidcClientContext(OidcClientConfiguration oidcClientConfig) Construct a new instance.OidcClientContext(OidcClientConfigurationResolver oidcConfigResolver) Construct a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetAuthServerBaseUrl(OidcHttpFacade facade, String base) 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 OidcClientConfigurationresolveUrls(OidcClientConfiguration deployment, OidcHttpFacade facade)
-
Field Details
-
oidcClientConfig
-
oidcConfigResolver
-
-
Constructor Details
-
OidcClientContext
public OidcClientContext() -
OidcClientContext
Construct a new instance.- Parameters:
oidcClientConfig- the OpenID Connect client configuration to use
-
OidcClientContext
Construct a new instance.- Parameters:
oidcConfigResolver- the resolver to be used to obtain the OpenID Connect client configuration
-
-
Method Details
-
resolveDeployment
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
-