Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0296eed6bd | ||
|
|
a19bed652c | ||
|
|
45d21154cc | ||
|
|
46a618daea |
14
CHANGELOG.md
14
CHANGELOG.md
@@ -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)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
2
pom.xml
2
pom.xml
@@ -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>
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
@@ -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();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user