How to check http status in springboot 3 using keycloak for token verification?

75 views Asked by At

I want to create a method for token verification which will send a request to the userinfo endpoint of keycloak and send me back, true or false.

true if the response status is 200 (OK)
false if the response status is 401 (Unauthorized)

I don't actually need the user info payload. Only the response status is required. How I can achieve this using spring boot 3

0

There are 0 answers