I have nodejs services as backend & frontend in angular, I want to secure my node api with keycloak, I am using keycloak 22.0.0, we tried with {{keycloak_url}}/realms/{{realm}}/protocol/openid-connect/token/introspect/
which requires client secret but I am not using client authentication.
I also tried with userinfo {{keycloak_url}}/realms/{{realm}}/protocol/openid-connect/userinfo
its always giving 403,
finally for time being I am using {{keycloak_url}}/realms/{{realm}}/users/{{user-sub}}/sessions
to get the session wheather token is active or not in my node middleware, why I don't recomond this approach my use might have 50 session the response object will have huge data which will impact on performance.
Please provide suitable/better solution on this.
Thanks in advance!