Record Class OidcTenantConfig
java.lang.Object
java.lang.Record
io.fluxzero.idp.client.OidcTenantConfig
- Record Components:
issuer- issuer URL expected in trusted tokensclientId- OIDC client id used for the authorization-code flow and ID token audienceredirectUri- callback URL registered with the tenantresourceAudience- audience expected for access tokens accepted by backend APIsscope- scopes requested during login, defaults toopenid profile emailclientCredentials- token endpoint credentials for confidential BFF clients
public record OidcTenantConfig(String issuer, String clientId, String redirectUri, String resourceAudience, String scope, OidcClientCredentials clientCredentials)
extends Record
Tenant-specific OIDC settings for a Fluxzero application.
A Fluxzero application should authenticate against the tenant configured for that application, not against a global Fluxzero IDP tenant. For local development the local stub IDP uses the same shape: an issuer, client id, redirect URI and resource audience. Keeping these values explicit makes the difference between production and local development a configuration/classpath concern rather than a different authentication implementation.
-
Constructor Summary
ConstructorsConstructorDescriptionOidcTenantConfig(String issuer, String clientId, String redirectUri, String resourceAudience, String scope) OidcTenantConfig(String issuer, String clientId, String redirectUri, String resourceAudience, String scope, OidcClientCredentials clientCredentials) Creates an instance of aOidcTenantConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclientCredentialsrecord component.clientId()Returns the value of theclientIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.issuer()Returns the value of theissuerrecord component.static StringnormalizeIssuer(String issuer) Normalizes an issuer for exact claim comparison.Returns the value of theredirectUrirecord component.Returns the value of theresourceAudiencerecord component.scope()Returns the value of thescoperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OidcTenantConfig
-
OidcTenantConfig
public OidcTenantConfig(String issuer, String clientId, String redirectUri, String resourceAudience, String scope, OidcClientCredentials clientCredentials) Creates an instance of aOidcTenantConfigrecord class.- Parameters:
issuer- the value for theissuerrecord componentclientId- the value for theclientIdrecord componentredirectUri- the value for theredirectUrirecord componentresourceAudience- the value for theresourceAudiencerecord componentscope- the value for thescoperecord componentclientCredentials- the value for theclientCredentialsrecord component
-
-
Method Details
-
normalizeIssuer
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
issuer
-
clientId
-
redirectUri
Returns the value of theredirectUrirecord component.- Returns:
- the value of the
redirectUrirecord component
-
resourceAudience
Returns the value of theresourceAudiencerecord component.- Returns:
- the value of the
resourceAudiencerecord component
-
scope
-
clientCredentials
Returns the value of theclientCredentialsrecord component.- Returns:
- the value of the
clientCredentialsrecord component
-