I integrate Keycloak into my service using the following example.
https://www.baeldung.com/spring-boot-keycloak
This works fine for me.
spring.security.oauth2.resourceserver.jwt.issuer-uri=http://localhost:8080/realms/SpringBootKeycloak
Now I have added an ssl configuration. This should be executed first, so that it also works.
spring.security.oauth2.resourceserver.jwt.issuer-uri=https://localhost:8080/realms/SpringBootKeycloak
But InMemoryClientRegistrationRepository it is always loaded beforehand. How can I influence the sequence here?
I try to register a ClientRegistrationRepository @Bean like this:
https://docs.spring.io/spring-security/reference/servlet/oauth2/login/core.html
But this requires more parameters than the solution from my example. In addition, I don’t want to create a new client registration, but only influence the time at which the automatically generated one is loaded