In Node.js
app I try to secure page with keycloak.protect()
, but after successful login app always responds with 403
error.
Keycloak was configured this way:
Master
->Add realm
-> Name:kingdom
Clients
->Create
-> Client ID:nodejs
Clients
->nodejs
->Settings
:Access Type
: confidentialValid Redirect URIs
: *
Then add Alice
user and successfully login as that user when Keycloak asks for credentials, but then getting Access denied
page. I've set up project where everything might be ./run.sh
with single command. I would appreciate any tips on how Keycloak should be additionally configured.
How can I setup Keycloak properly so that access will be allowed for empty list of roles?