Relative Content

Tag Archive for javaspring-bootspring-securitykeycloakspring-security-oauth2

How to authenticate api-key in Keyclock with Spring Security

I am using keyclock with springboot latest versions, I have been trying to authenticate users using api-key that is sent in header just like jwt
I found a way using filters in spring security, extract the api-key from the header and check the key before access endpoint, but this is not related with keyclock, the requirement is to use keyclock in this process, so how to generate api-key in keyclock and use this api-key in the header each time the client send, and in keyclock of filter check this api-key, the important point here is to make keyclock generate the api-key and play the central point in this process

How to authenticate api-key in Keyclock with Spring Security

I am using keyclock with springboot latest versions, I have been trying to authenticate users using api-key that is sent in header just like jwt
I found a way using filters in spring security, extract the api-key from the header and check the key before access endpoint, but this is not related with keyclock, the requirement is to use keyclock in this process, so how to generate api-key in keyclock and use this api-key in the header each time the client send, and in keyclock of filter check this api-key, the important point here is to make keyclock generate the api-key and play the central point in this process