Class EmbeddedLoginCodeAuthenticationConverter
java.lang.Object
com.broadleafcommerce.auth.authorization.security.embedded.code.EmbeddedLoginCodeAuthenticationConverter
- All Implemented Interfaces:
org.springframework.security.web.authentication.AuthenticationConverter
public class EmbeddedLoginCodeAuthenticationConverter
extends Object
implements org.springframework.security.web.authentication.AuthenticationConverter
Convert a web request and parameters to
EmbeddedLoginCodeAuthenticationToken
. If there
are not any scopes requested, this will use the client's default scopes as requested scopes.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.core.Authentication
convert
(jakarta.servlet.http.HttpServletRequest request) Read the scopes from theRegisteredClient
specified by theOAuth2ParameterNames.CLIENT_ID
parameter.protected static void
throwError
(String errorCode, String parameterName)
-
Field Details
-
USERNAME
- See Also:
-
PURPOSE_PARAMETER
- See Also:
-
-
Constructor Details
-
EmbeddedLoginCodeAuthenticationConverter
public EmbeddedLoginCodeAuthenticationConverter()
-
-
Method Details
-
convert
public org.springframework.security.core.Authentication convert(jakarta.servlet.http.HttpServletRequest request) - Specified by:
convert
in interfaceorg.springframework.security.web.authentication.AuthenticationConverter
-
getClientScopes
Read the scopes from theRegisteredClient
specified by theOAuth2ParameterNames.CLIENT_ID
parameter.- Returns:
- The set of scopes specified on the
AuthorizedClient
. - See Also:
-
throwError
-