build
This commit is contained in:
@@ -21,7 +21,7 @@ class BearerTokenFilter(
|
|||||||
private val publicMatchers = listOf(
|
private val publicMatchers = listOf(
|
||||||
AntPathRequestMatcher("/auth/login", "POST"),
|
AntPathRequestMatcher("/auth/login", "POST"),
|
||||||
AntPathRequestMatcher("/auth/register", "POST"),
|
AntPathRequestMatcher("/auth/register", "POST"),
|
||||||
AntPathRequestMatcher("/auth/tgLogin", "POST"),
|
AntPathRequestMatcher("/auth/tg-login", "POST"),
|
||||||
AntPathRequestMatcher("/actuator/**"),
|
AntPathRequestMatcher("/actuator/**"),
|
||||||
AntPathRequestMatcher("/static/**"),
|
AntPathRequestMatcher("/static/**"),
|
||||||
AntPathRequestMatcher("/wishlistexternal/**"),
|
AntPathRequestMatcher("/wishlistexternal/**"),
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ class SecurityConfig(
|
|||||||
.logout { it.disable() }
|
.logout { it.disable() }
|
||||||
|
|
||||||
.authorizeHttpRequests {
|
.authorizeHttpRequests {
|
||||||
it.requestMatchers(HttpMethod.POST, "/auth/login", "/auth/register", "/auth/tgLogin").permitAll()
|
it.requestMatchers(HttpMethod.POST, "/auth/login", "/auth/register", "/auth/tg-login").permitAll()
|
||||||
it.requestMatchers("/actuator/**", "/static/**").permitAll()
|
it.requestMatchers("/actuator/**", "/static/**").permitAll()
|
||||||
it.requestMatchers("/wishlistexternal/**").permitAll()
|
it.requestMatchers("/wishlistexternal/**").permitAll()
|
||||||
it.requestMatchers("/swagger-ui/**", "/swagger-ui.html", "/v3/api-docs/**").permitAll()
|
it.requestMatchers("/swagger-ui/**", "/swagger-ui.html", "/v3/api-docs/**").permitAll()
|
||||||
|
|||||||
Reference in New Issue
Block a user