Class TelegramAuthAutoConfiguration
java.lang.Object
io.r03el.tma.security.starter.config.TelegramAuthAutoConfiguration
@AutoConfiguration
@AutoConfigureBefore(org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration.class)
@EnableConfigurationProperties(TelegramAuthProperties.class)
@ConditionalOnWebApplication(type=SERVLET)
@ConditionalOnClass({org.springframework.security.authentication.AuthenticationProvider.class,jakarta.servlet.Filter.class})
@ConditionalOnProperty(prefix="telegram.auth",
name="enabled",
havingValue="true",
matchIfMissing=true)
public class TelegramAuthAutoConfiguration
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontelegramAuthenticationProvider(TelegramAuthProperties properties) org.springframework.security.web.AuthenticationEntryPointtelegramAuthFilter(TelegramAuthProperties properties, org.springframework.security.config.annotation.authentication.configuration.AuthenticationConfiguration authenticationConfiguration, TelegramAuthenticationProvider telegramAuthenticationProvider, org.springframework.security.web.AuthenticationEntryPoint telegramAuthEntryPoint, org.springframework.security.web.context.SecurityContextRepository securityContextRepository) org.springframework.security.web.context.SecurityContextRepository
-
Constructor Details
-
TelegramAuthAutoConfiguration
public TelegramAuthAutoConfiguration()
-
-
Method Details
-
telegramAuthenticationProvider
@Bean @ConditionalOnMissingBean public TelegramAuthenticationProvider telegramAuthenticationProvider(TelegramAuthProperties properties) -
telegramAuthFailureHandlerEntryPoint
@Bean @ConditionalOnMissingBean(value={org.springframework.security.web.authentication.AuthenticationFailureHandler.class,org.springframework.security.web.AuthenticationEntryPoint.class}, name="telegramAuthFailureHandlerEntryPoint") public org.springframework.security.web.AuthenticationEntryPoint telegramAuthFailureHandlerEntryPoint() -
telegramSecurityContextRepository
@Bean @ConditionalOnMissingBean public org.springframework.security.web.context.SecurityContextRepository telegramSecurityContextRepository() -
telegramAuthFilter
@Bean @ConditionalOnMissingBean public TelegramAuthFilter telegramAuthFilter(TelegramAuthProperties properties, org.springframework.security.config.annotation.authentication.configuration.AuthenticationConfiguration authenticationConfiguration, TelegramAuthenticationProvider telegramAuthenticationProvider, org.springframework.security.web.AuthenticationEntryPoint telegramAuthEntryPoint, org.springframework.security.web.context.SecurityContextRepository securityContextRepository) throws Exception - Throws:
Exception
-