Search in sources :

Example 1 with JwtAuthenticationFilter

use of org.apache.nifi.web.security.jwt.JwtAuthenticationFilter in project nifi by apache.

the class NiFiWebApiSecurityConfiguration method jwtFilterBean.

@Bean
public JwtAuthenticationFilter jwtFilterBean() throws Exception {
    if (jwtAuthenticationFilter == null) {
        jwtAuthenticationFilter = new JwtAuthenticationFilter();
        jwtAuthenticationFilter.setProperties(properties);
        jwtAuthenticationFilter.setAuthenticationManager(authenticationManager());
    }
    return jwtAuthenticationFilter;
}
Also used : JwtAuthenticationFilter(org.apache.nifi.web.security.jwt.JwtAuthenticationFilter) Bean(org.springframework.context.annotation.Bean)

Aggregations

JwtAuthenticationFilter (org.apache.nifi.web.security.jwt.JwtAuthenticationFilter)1 Bean (org.springframework.context.annotation.Bean)1