4 Commits

Author SHA1 Message Date
semantic-release-bot
0296eed6bd chore(release): 1.2.2 [skip ci]
## [1.2.2](https://git.tools.ldpt.fr/lucasdpt/spring-keycloak-starter/compare/1.2.1...1.2.2) (2025-09-27)

### Bug Fixes

* fix requestMatcher for actuator ([a19bed6](a19bed652c))
2025-09-27 14:43:33 +00:00
lucasdpt
a19bed652c fix: fix requestMatcher for actuator
All checks were successful
Release / release (push) Successful in 2m4s
2025-09-27 16:41:55 +02:00
semantic-release-bot
45d21154cc chore(release): 1.2.1 [skip ci]
## [1.2.1](https://git.tools.ldpt.fr/lucasdpt/spring-keycloak-starter/compare/1.2.0...1.2.1) (2025-09-26)

### Bug Fixes

* update bean init ([46a618d](46a618daea))
2025-09-26 13:06:43 +00:00
lucasdpt
46a618daea fix: update bean init
All checks were successful
Release / release (push) Successful in 1m57s
2025-09-26 15:05:12 +02:00
4 changed files with 21 additions and 3 deletions

View File

@@ -1,3 +1,17 @@
## [1.2.2](https://git.tools.ldpt.fr/lucasdpt/spring-keycloak-starter/compare/1.2.1...1.2.2) (2025-09-27)
### Bug Fixes
* fix requestMatcher for actuator ([a19bed6](https://git.tools.ldpt.fr/lucasdpt/spring-keycloak-starter/commit/a19bed652cc87cf02e45fc0c14e2082eaa176830))
## [1.2.1](https://git.tools.ldpt.fr/lucasdpt/spring-keycloak-starter/compare/1.2.0...1.2.1) (2025-09-26)
### Bug Fixes
* update bean init ([46a618d](https://git.tools.ldpt.fr/lucasdpt/spring-keycloak-starter/commit/46a618daea7637c565240e468829294860cc6478))
# [1.2.0](https://git.tools.ldpt.fr/lucasdpt/spring-keycloak-starter/compare/v1.1.0...1.2.0) (2025-09-26) # [1.2.0](https://git.tools.ldpt.fr/lucasdpt/spring-keycloak-starter/compare/v1.1.0...1.2.0) (2025-09-26)

View File

@@ -6,7 +6,7 @@
<groupId>fr.lucasdupont</groupId> <groupId>fr.lucasdupont</groupId>
<artifactId>spring-keycloak-starter</artifactId> <artifactId>spring-keycloak-starter</artifactId>
<version>1.2.0</version> <version>1.2.2</version>
<properties> <properties>
<maven.compiler.source>21</maven.compiler.source> <maven.compiler.source>21</maven.compiler.source>

View File

@@ -6,7 +6,6 @@ import org.springframework.security.oauth2.jwt.Jwt;
import org.springframework.security.oauth2.server.resource.authentication.JwtAuthenticationToken; import org.springframework.security.oauth2.server.resource.authentication.JwtAuthenticationToken;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
@Component
public class CallerIdResolver { public class CallerIdResolver {
public CallerId get() throws IllegalAccessException { public CallerId get() throws IllegalAccessException {

View File

@@ -26,7 +26,7 @@ public class KeycloakAutoConfiguration {
http http
.csrf(AbstractHttpConfigurer::disable) .csrf(AbstractHttpConfigurer::disable)
.authorizeHttpRequests(registry -> registry .authorizeHttpRequests(registry -> registry
.requestMatchers("/actuator/health", "/actuator/info").permitAll() .requestMatchers("/actuator/health", "/actuator/info", "/actuator/health/*", "/actuator/info/*").permitAll()
.anyRequest().authenticated() .anyRequest().authenticated()
) )
.oauth2ResourceServer(oauth2 -> oauth2 .oauth2ResourceServer(oauth2 -> oauth2
@@ -43,4 +43,9 @@ public class KeycloakAutoConfiguration {
return new RequiredRoleFilter(props); return new RequiredRoleFilter(props);
} }
@Bean
public CallerIdResolver callerIdResolver() {
return new CallerIdResolver();
}
} }