Prompt=login between Keycloak and Spring Security Oauth2

Viewed 411

I am using Spring Security Oauth2 with keycloak 10 to authenticate my app users.

Can anyone tell me how to ask an authenticated user to provide his credentials again when trying to do sensitive actions on the app?

Keycloak has a parameter named prompt that must be forwarder from my app to keycloak, but I don't know how to do that.

Thanks for your help

2 Answers

After I did a few tests, I can say that the resolver doesn't solve the whole problem.

To sum up my discovery, by default spring doesn't ask an authenticated request to login again. In fact, when I try to do a sensitive action, Spring allows me to go ahead because as I said, it finds that I have an active session.

Regards

Related