diff --git a/.mvn/wrapper/maven-wrapper.properties b/.mvn/wrapper/maven-wrapper.properties index b7cb93e..d58dfb7 100644 --- a/.mvn/wrapper/maven-wrapper.properties +++ b/.mvn/wrapper/maven-wrapper.properties @@ -1,2 +1,19 @@ -distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.4/apache-maven-3.8.4-bin.zip -wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +wrapperVersion=3.3.2 +distributionType=only-script +distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.9/apache-maven-3.9.9-bin.zip diff --git a/README.md b/README.md index 849892f..13d49b7 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -[![Build Status](https://github.com/42BV/rest-secure-spring-boot-starter/workflows/Java%20CI%20with%20Maven/badge.svg)](https://github.com/42BV/rest-secure-spring-boot-starter/actions?query=workflow%3A%22Java+CI+with+Maven%22) -[![Codacy Badge](https://app.codacy.com/project/badge/Grade/fc6f224a2c0e40a893521b320637ad3e)](https://www.codacy.com/gh/42BV/rest-secure-spring-boot-starter/dashboard?utm_source=github.com&utm_medium=referral&utm_content=42BV/rest-secure-spring-boot-starter&utm_campaign=Badge_Grade) +[![Build Status](https://github.com/42BV/rest-secure-spring-boot-starter/actions/workflows/maven.yml/badge.svg)](https://github.com/42BV/rest-secure-spring-boot-starter/actions?query=workflow%3A%22Java+CI+with+Maven%22) +[![Codacy Badge](https://app.codacy.com/project/badge/Grade/fc6f224a2c0e40a893521b320637ad3e)](https://app.codacy.com/gh/42BV/rest-secure-spring-boot-starter/dashboard) [![codecov](https://codecov.io/gh/42BV/rest-secure-spring-boot-starter/branch/master/graph/badge.svg)](https://codecov.io/gh/42BV/rest-secure-spring-boot-starter) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/nl.42/rest-secure-spring-boot-starter/badge.svg)](https://maven-badges.herokuapp.com/maven-central/nl.42/rest-secure-spring-boot-starter) [![Javadoc](https://www.javadoc.io/badge/nl.42/rest-secure-spring-boot-starter.svg)](https://www.javadoc.io/doc/nl.42/rest-secure-spring-boot-starter) diff --git a/src/main/java/nl/_42/restsecure/autoconfigure/WebSecurityAutoConfig.java b/src/main/java/nl/_42/restsecure/autoconfigure/WebSecurityAutoConfig.java index 4b243c2..5ebf604 100644 --- a/src/main/java/nl/_42/restsecure/autoconfigure/WebSecurityAutoConfig.java +++ b/src/main/java/nl/_42/restsecure/autoconfigure/WebSecurityAutoConfig.java @@ -242,11 +242,11 @@ private AuthorizeHttpRequestsConfigurer.AuthorizationManagerReques private HttpSecurity customize(HttpSecurity http) throws Exception { if (httpCustomizer != null) { log.info("Found HttpSecurityCustomizer bean in ApplicationContext, custom configuring of HttpSecurity object started."); - http = httpCustomizer.customize(http); + return httpCustomizer.customize(http); } else { log.info("No HttpSecurityCustomizer bean found in ApplicationContext, no custom configuring of HttpSecurity object."); + return http; } - return http; } private CsrfTokenRepository csrfTokenRepository() {