I
I
IvanN7772021-04-12 16:14:25
Java
IvanN777, 2021-04-12 16:14:25

How can spring secure be customized to work with openid?

When we are dealing with curl
https://www.baeldung.com/postman-keycloak-endpoints
We need to get an acess-token and use it to get information about the user.

{{server}}/auth/realms/{{realm}}/protocol/openid-connect/token
{{server}}/auth/realms/{{realm}}/protocol/openid-connect/userinfo

Everything looks pretty simple when we call simple requests
. But how to sew this custom behavior into secure.
It is custom, even if there is a ready-made solution.

Here, as I understand it, it is the filter, and the check of the token.
But you also need to get a token.
https://www.baeldung.com/spring-security-openid-co...

What should I read or what interface can I implement to do something like this

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question