Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Kasm OpenID "Internal Error" after successful login on keycloak #69

Closed
1 task done
Illisen opened this issue Sep 16, 2024 · 2 comments
Closed
1 task done

Comments

@Illisen
Copy link

Illisen commented Sep 16, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

As i try loging to kasm via keycloak, when it does back to "/api/oidc_callback" it always goes in an "Internal error"

Expected Behavior

After successful login with keycloak, should correctly login to kasm.

Steps To Reproduce

Kasm 1.15.0.577587

kasm openid config:
image

Can provide my keycloak client config if needed.

Environment

- OS: Debian 11
- How docker service was installed: using debian native package manager
- Kasm and keycloak behind nginx reverse proxy

CPU architecture

x86-64

Docker creation

using docker-compose.yml :

services:
  kasm:
    image: lscr.io/linuxserver/kasm:latest
    container_name: kasm
    privileged: true
    environment:
      - KASM_PORT=xxxx
    volumes:
      - ./opt:/opt
      - ./profiles:/profiles
    ports:
      - 3000:3000
      - xxxx:xxxx
    restart: unless-stopped

Container logs

No logs appear in docker logs but i got this in kasm dashboard :

host: 30df5536a209
ingest_date: 202409160957
application: kasm_api
levelname: ERROR
process: root
client_ip: 13.41.193.200, 192.168.224.1
user_agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36 OPR/113.0.0.0
message
Unhandled exception occurred
Traceback (most recent call last):
  File "requests/models.py", line 971, in json
  File "simplejson/__init__.py", line 518, in loads
  File "simplejson/decoder.py", line 370, in decode
  File "simplejson/decoder.py", line 400, in raw_decode
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "cherrypy/_cprequest.py", line 628, in respond
  File "cherrypy/_cprequest.py", line 687, in _do_respond
  File "cherrypy/lib/encoding.py", line 219, in __call__
  File "cherrypy/_cpdispatch.py", line 54, in __call__
  File "utils.py", line 99, in wrapper
  File "client_api.py", line 952, in oidc_callback
  File "authentication/oidc/__init__.py", line 132, in process_callback
  File "requests/models.py", line 975, in json
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Copy link

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

@Illisen
Copy link
Author

Illisen commented Sep 16, 2024

Okay, after multiple failed attemps, it would seem I was simply missing the 'openid' field in the scope...

@Illisen Illisen closed this as completed Sep 16, 2024
@LinuxServer-CI LinuxServer-CI moved this from Issues to Done in Issue & PR Tracker Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

1 participant