Fix Kotlin HTTP auth backend example

No need of Spring Security.
This commit is contained in:
Arnaud Cogoluègnes 2023-07-28 16:05:02 +02:00
parent cee35f7cd2
commit a07be2c1d3
No known key found for this signature in database
GPG Key ID: D5C8C4DFAD43AFA8
3 changed files with 5 additions and 28 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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/**")
}
}