Class LegacyImplicitTokenGeneratorFactory
java.lang.Object
com.irurueta.authserver.authorization.api.web.implicit.LegacyImplicitTokenGeneratorFactory
Builds the token generator of the legacy flow with the claims customizers of the server, so its tokens carry the same
roles, tenant, audience and authentication claims as those of the other flows. The generator is deliberately not a
bean: a bean of that type would replace the one the framework builds for every other flow.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.springframework.beans.factory.ObjectProvider<org.springframework.security.oauth2.server.authorization.token.OAuth2TokenCustomizer<org.springframework.security.oauth2.server.authorization.token.OAuth2TokenClaimsContext>> Adds the claims of the server to a reference token.private final org.springframework.beans.factory.ObjectProvider<org.springframework.security.oauth2.server.authorization.token.OAuth2TokenCustomizer<org.springframework.security.oauth2.server.authorization.token.JwtEncodingContext>> Adds the claims of the server to a JWT.private final org.springframework.security.oauth2.jwt.JwtEncoderSigns the self-contained tokens. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.oauth2.server.authorization.token.OAuth2TokenGenerator<org.springframework.security.oauth2.core.OAuth2Token> create()Creates the generator: a JWT for a client of self-contained tokens, an opaque token otherwise.
-
Field Details
-
jwtEncoder
private final org.springframework.security.oauth2.jwt.JwtEncoder jwtEncoderSigns the self-contained tokens. -
jwtCustomizers
private final org.springframework.beans.factory.ObjectProvider<org.springframework.security.oauth2.server.authorization.token.OAuth2TokenCustomizer<org.springframework.security.oauth2.server.authorization.token.JwtEncodingContext>> jwtCustomizersAdds the claims of the server to a JWT. -
claimsCustomizers
private final org.springframework.beans.factory.ObjectProvider<org.springframework.security.oauth2.server.authorization.token.OAuth2TokenCustomizer<org.springframework.security.oauth2.server.authorization.token.OAuth2TokenClaimsContext>> claimsCustomizersAdds the claims of the server to a reference token.
-
-
Constructor Details
-
LegacyImplicitTokenGeneratorFactory
public LegacyImplicitTokenGeneratorFactory()
-
-
Method Details
-
create
public org.springframework.security.oauth2.server.authorization.token.OAuth2TokenGenerator<org.springframework.security.oauth2.core.OAuth2Token> create()Creates the generator: a JWT for a client of self-contained tokens, an opaque token otherwise.- Returns:
- the generator.
-