I am trying to use keycloak springboot adapter. I want to make some endpoints with "/api" work with bearer only to true.
But I also want the endpoint "/login" to not be a bearer only endpoint and redirect the user to the keycloak OIDC login page if he is not authenticated.
How can I achieve that ?
All I have now is just bearer only for every endpoints in my application properties.
Thanks in advance for your answers :)
In web-security conf,
permitAll()
PS
Keycloak spring adapters are deprecated
As an alternative, you can use:
spring-boot-starter-oauth2-resource-server
tutorial there (it requires more Java conf)