Class DefaultJwtAuthenticationProvider

  • All Implemented Interfaces:
    org.springframework.security.authentication.AuthenticationProvider

    public class DefaultJwtAuthenticationProvider
    extends Object
    implements org.springframework.security.authentication.AuthenticationProvider
    Json Web Token Authentication Provider used to validate incoming requests to Feast Core.
    • Constructor Detail

      • DefaultJwtAuthenticationProvider

        public DefaultJwtAuthenticationProvider​(Map<String,​String> options)
        Parameters:
        options - String K/V pair of options to initialize the AuthenticationProvider with. Only one option is currently configurable, the jwkEndpointURI.
    • Method Detail

      • authenticate

        public org.springframework.security.core.Authentication authenticate​(org.springframework.security.core.Authentication authentication)
                                                                      throws org.springframework.security.core.AuthenticationException
        Authenticate a request based on its Spring Security Authentication object
        Specified by:
        authenticate in interface org.springframework.security.authentication.AuthenticationProvider
        Parameters:
        authentication - Authentication object which contains a JWT to validate
        Returns:
        Returns the same authentication object after authentication
        Throws:
        org.springframework.security.core.AuthenticationException
      • supports

        public boolean supports​(Class<?> aClass)
        Specified by:
        supports in interface org.springframework.security.authentication.AuthenticationProvider