com.chutneytesting.security.ChutneySecurityConfig Maven / Gradle / Ivy
package com.chutneytesting.security;
import com.chutneytesting.security.domain.AuthenticationService;
import com.chutneytesting.security.domain.Authorizations;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
@Configuration
@EnableWebSecurity
@EnableGlobalMethodSecurity(prePostEnabled = true)
public class ChutneySecurityConfig {
@Bean
public AuthenticationService authenticationService(Authorizations authorizations) {
return new AuthenticationService(authorizations);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy