D
D
Denis Kuznetsov2021-10-15 00:16:30
JSON Web Token
Denis Kuznetsov, 2021-10-15 00:16:30

How to send a request with a token to a secure keycloak service?

I found examples in which microservices are protected using keycloak and to access them they send a request to postman where in the authentication column via openId 2.0 they get an access token and use it for the request
I tried to find examples where this logic is placed in the controller, but did not succeed
Maybe Can anyone please tell me how, when contacting the controller, to make it receive this token itself (so that I, for example, can log it for demonstration), say, using keycloak user credentials and then modify the request to the secure controller using this token?

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