workspaces-issues icon indicating copy to clipboard operation
workspaces-issues copied to clipboard

[Bug] - The redirection URL is missing the port when using OpenID

Open mypal opened this issue 2 years ago • 2 comments

Existing Resources

  • [x] Please search the existing issues for related problems
  • [x] Consult the product documentation : Docs
  • [x] Consult the FAQ : FAQ
  • [x] Consult the Troubleshooting Guide : Guide
  • [x] Reviewed existing training videos: Youtube

Describe the bug The URL hostname of the deployment has a port number, but the API /api/oidc_callback responded with a redirection URL without the port number when using OpenID authentication. The hostname has been set to include a port number in OpenID config, however, it doesn't work.

To Reproduce As shown in the screenshots.

Expected behavior Redirection URL with the port number.

Screenshots image image

Workspaces Version API Server Build 1.13.0.002947 Web UI 1.13.0.357896

Workspaces Installation Method linuxserver.io

Client Browser (please complete the following information):

  • OS: Mac OS
  • Browser: Microsoft Edge
  • Version: 114.0.1823.41

Workspace Server Information (please provide the output of the following commands):

  • uname -a Linux 4f76a38ab404 5.19.17-Unraid #2 SMP PREEMPT_DYNAMIC Wed Nov 2 11:54:15 PDT 2022 x86_64 x86_64 x86_64 GNU/Linux
  • cat /etc/os-release PRETTY_NAME="Ubuntu 22.04.2 LTS" NAME="Ubuntu" VERSION_ID="22.04" VERSION="22.04.2 LTS (Jammy Jellyfish)" VERSION_CODENAME=jammy ID=ubuntu ID_LIKE=debian HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" UBUNTU_CODENAME=jammy
  • sudo docker info Client: Docker Engine - Community Version: 24.0.2 Context: default Debug Mode: false Plugins: compose: Docker Compose (Docker Inc.) Version: v2.5.0 Path: /usr/local/lib/docker/cli-plugins/docker-compose Server: Containers: 8 Running: 8 Paused: 0 Stopped: 0 Images: 9 Server Version: 24.0.2 Storage Driver: fuse-overlayfs Logging Driver: json-file Cgroup Driver: cgroupfs Cgroup Version: 1 Plugins: Volume: local Network: bridge host ipvlan macvlan null overlay Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog Swarm: inactive Runtimes: nvidia runc io.containerd.runc.v2 Default Runtime: runc Init Binary: docker-init containerd version: 3dce8eb055cbb6872793272b4f20ed16117344f8 runc version: v1.1.7-0-g860f061 init version: de40ad0 Security Options: seccomp Profile: builtin Kernel Version: 5.19.17-Unraid Operating System: Ubuntu 22.04.2 LTS (containerized) OSType: linux Architecture: x86_64 CPUs: 4 Total Memory: 29.32GiB Name: 4f76a38ab404 ID: 35335732-5df9-4685-8259-a177e347ba4b Docker Root Dir: /opt/docker Debug Mode: false Experimental: false Insecure Registries: 127.0.0.0/8 Live Restore Enabled: false
  • sudo docker ps | grep kasm b0bfa8fde8cb kasmweb/nginx:latest "/docker-entrypoint.…" 2 hours ago Up 2 hours 80/tcp, 0.0.0.0:8443->8443/tcp kasm_proxy ae6e55b28978 kasmweb/agent:1.13.0 "/bin/sh -c '/usr/bi…" 2 hours ago Up 2 hours (healthy) 4444/tcp kasm_agent bbb7b53ca0a6 kasmweb/share:1.13.0 "/bin/sh -c '/usr/bi…" 2 hours ago Up 2 hours (healthy) 8182/tcp kasm_share cb44fa44e777 kasmweb/manager:1.13.0 "/bin/sh -c '/usr/bi…" 2 hours ago Up 2 hours (healthy) 8181/tcp kasm_manager 0b39351cb55c kasmweb/kasm-guac:1.13.0 "/dockerentrypoint.sh" 2 hours ago Up 2 hours (healthy) kasm_guac 5dd2e3529de4 redis:5-alpine "docker-entrypoint.s…" 2 hours ago Up 2 hours 6379/tcp kasm_redis dd55242cfaf4 kasmweb/api:1.13.0 "/bin/sh -c '/usr/bi…" 2 hours ago Up 2 hours (healthy) 8080/tcp kasm_api e18453d6821b postgres:12-alpine "docker-entrypoint.s…" 2 hours ago Up 2 hours (healthy) 5432/tcp kasm_db

Additional context Add any other context about the problem here.

mypal avatar Jun 08 '23 10:06 mypal

Same problem for me, I was thinking its maybe my configuration but I dont use any reverseproxy

BoKKeR avatar Nov 10 '23 14:11 BoKKeR

Same problem for me, version 1.16.1. I've used the Nginx proxy_redirect directive to temporarily fix the issue by rewriting the redirect URLs to point to the reverse proxy's port.

location / {
    ...
    # Proxy to Kasm Workspaces running locally on 8443 using ssl
    proxy_pass https://x.x.x.x:8443;
    proxy_redirect https://$host/ https://$host:$server_port/;
}

zzzz0317 avatar Jan 28 '25 08:01 zzzz0317