keycloak / keycloak/keycloak-nodejs-connect

Cannot load example protected resource

Open
#367 2 comments 0 reactions 0 assignees View on GitHub
kind/bug status/triage
Dominant language
JavaScript
Stars
740
Forks
442
PR merge metrics
No merged PRs in 30d

Description

### Describe the bug

After starting the docker image and adding the realm via the import button and uploading `nodejs-example-realm.json`, I can login but I cannot access the protected route and receive "Access Denied".

### Version

Keycloak 17.0.1

### Expected behavior

Result and Access Granted Event

### Actual behavior

Access denied

### How to Reproduce?

Add the realm via the import button and uploading `nodejs-example-realm.json`

```
npm link ../
npm install
npm start
```

Open the browser at http://localhost:3000/ and login with username: 'user', and password: 'password'.

click protected route

### Anything else?

This is a duplicate of #310 which was closed. However, I think the example configuration (`nodejs-example-realm.json`) should be adapted so it works without further configuration.

Contributor guide

Open the contributing guide

Research direction

Start with nodejs-example-realm.json and reproduce the issue using the listed npm commands, then open http://localhost:3000/, log in with the provided credentials, and click the protected route. Check the example realm configuration against the access-denied behavior; done means the imported example realm reaches the protected route and produces the expected result and Access Granted Event without further configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
authentication, authorization
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.