1

I'm using keycloak.protect('user') in nodejs (keycloak-connect lib) for my APIs to allow only user role and it works.

How could I add multiple roles in the keycloak.protect()? I tried with the keycloak.protect(['user','admin']) but it allows anyone with a valid token (it looks like to have the same behavior of keycloak.protect())

pasquy73
  • 563
  • 3
  • 13

0 Answers0