Fix Kotlin HTTP auth backend example
No need of Spring Security.
This commit is contained in:
parent
cee35f7cd2
commit
a07be2c1d3
|
|
@ -33,8 +33,8 @@
|
|||
</parent>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>1.8</maven.compiler.source>
|
||||
<maven.compiler.target>1.8</maven.compiler.target>
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
<junit.jupiter.version>5.10.0</junit.jupiter.version>
|
||||
</properties>
|
||||
|
||||
|
|
|
|||
|
|
@ -21,16 +21,13 @@
|
|||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||
<java.version>1.8</java.version>
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
<kotlin.version>1.9.0</kotlin.version>
|
||||
<junit-jupiter.version>5.9.3</junit-jupiter.version>
|
||||
<junit-jupiter.version>5.10.0</junit-jupiter.version>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-security</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-web</artifactId>
|
||||
|
|
|
|||
|
|
@ -1,20 +0,0 @@
|
|||
/**
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* Copyright (c) 2018-2020 VMware, Inc. or its affiliates. All rights reserved.
|
||||
*/
|
||||
package com.rabbitmq.examples
|
||||
|
||||
import org.springframework.context.annotation.Configuration
|
||||
import org.springframework.security.config.annotation.web.builders.HttpSecurity
|
||||
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
|
||||
|
||||
|
||||
@Configuration
|
||||
class SecurityConfiguration : WebSecurityConfigurerAdapter() {
|
||||
override fun configure(http: HttpSecurity) {
|
||||
http.csrf().ignoringAntMatchers("/auth/**")
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue