All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.rocketbase.commons.security.TokenAuthenticationProvider Maven / Gradle / Ivy

There is a newer version: 4.4.1
Show newest version
package io.rocketbase.commons.security;

import lombok.RequiredArgsConstructor;
import org.springframework.security.authentication.AuthenticationProvider;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.AuthenticationException;

@RequiredArgsConstructor
public class TokenAuthenticationProvider implements AuthenticationProvider {

    @Override
    public Authentication authenticate(Authentication authentication) throws AuthenticationException {
        return authentication;
    }

    @Override
    public boolean supports(Class authentication) {
        return CommonsAuthenticationToken.class.isAssignableFrom(authentication);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy