This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
@@ -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