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 Details

  • Constructor Details

    • EmbeddedLoginCodeAuthenticationConverter

      public EmbeddedLoginCodeAuthenticationConverter()
  • Method Details

    • convert

      public org.springframework.security.core.Authentication convert(jakarta.servlet.http.HttpServletRequest request)
      Specified by:
      convert in interface org.springframework.security.web.authentication.AuthenticationConverter
    • getClientScopes

      protected Set<String> getClientScopes()
      Read the scopes from the RegisteredClient specified by the OAuth2ParameterNames.CLIENT_ID parameter.
      Returns:
      The set of scopes specified on the AuthorizedClient.
      See Also:
    • throwError

      protected static void throwError(String errorCode, String parameterName)