Class LegacyImplicitProtocolChainCustomizer
java.lang.Object
com.irurueta.authserver.authorization.api.web.implicit.LegacyImplicitProtocolChainCustomizer
- All Implemented Interfaces:
ProtocolChainCustomizer
public class LegacyImplicitProtocolChainCustomizer
extends Object
implements ProtocolChainCustomizer
Adds the legacy implicit flow to the authorization endpoint: its converter first, its provider first and its
response handler in place of the framework's (which it delegates to for an authorization code).
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.springframework.security.web.authentication.AuthenticationConverterReads a request withresponse_type=token.static final intOrder of the customizer, after the client authentication one (3).private final org.springframework.security.authentication.AuthenticationProviderGrants the request.private final org.springframework.security.web.authentication.AuthenticationSuccessHandlerRedirects with the token in the fragment. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcustomize(org.springframework.security.config.annotation.web.configurers.oauth2.server.authorization.OAuth2AuthorizationServerConfigurer server) Customizes the authorization endpoint.
-
Field Details
-
ORDER
public static final int ORDEROrder of the customizer, after the client authentication one (3).- See Also:
-
converter
private final org.springframework.security.web.authentication.AuthenticationConverter converterReads a request withresponse_type=token. -
provider
private final org.springframework.security.authentication.AuthenticationProvider providerGrants the request. -
responseHandler
private final org.springframework.security.web.authentication.AuthenticationSuccessHandler responseHandlerRedirects with the token in the fragment.
-
-
Constructor Details
-
LegacyImplicitProtocolChainCustomizer
public LegacyImplicitProtocolChainCustomizer()
-
-
Method Details
-
customize
public void customize(org.springframework.security.config.annotation.web.configurers.oauth2.server.authorization.OAuth2AuthorizationServerConfigurer server) Customizes the authorization endpoint.- Specified by:
customizein interfaceProtocolChainCustomizer- Parameters:
server- configurer of the authorization server.
-