Package com.onec.auth.spi
Record Class SsoProvider
java.lang.Object
java.lang.Record
com.onec.auth.spi.SsoProvider
- Record Components:
id- the OIDC client registration id (e.g.keycloak,zitadel)label- human-readable button label (the client name, falling back to the id)- where the browser navigates to start login (/oauth2/authorization/{id})
A single sign-on option offered on the login screen — one OIDC client registration.
Part of the auth↔UI seam (see AuthMethodsProvider): plain data so the UI module can
render an SSO button without depending on the auth module or Spring Security.
-
Constructor Summary
ConstructorsConstructorDescriptionSsoProvider(String id, String label, String authorizationUrl) Creates an instance of aSsoProviderrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theauthorizationUrlrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.label()Returns the value of thelabelrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SsoProvider
Creates an instance of aSsoProviderrecord class.- Parameters:
id- the value for theidrecord componentlabel- the value for thelabelrecord componentauthorizationUrl- the value for theauthorizationUrlrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
authorizationUrl
Returns the value of theauthorizationUrlrecord component.- Returns:
- the value of the
authorizationUrlrecord component
-