pocket-id: 🐛 Bug Report: JWT+ID token breaks Proxmox OIDC auth
Reproduction steps
When trying to use PocketID with Proxmox, the login/auth flow is broken
Repro:
- Setup Proxmox as an OIDC Client
- Configure Proxmox to use PocketID
- Try to login
- Fail
Expected behavior
User should get authenticated successfuly.
Actual Behavior
Configuration:
Error when trying to log-in using OIDC after configuration:
From the Proxmox logs, you can see this error:
pvedaemon[280768]: openid authentication failure; rhost=<ip> msg=Failed to verify ID token: Unsupported: unexpected or unsupported JWT type `ID+JWT`
Which seems to come from here: https://github.com/proxmox/proxmox-rs/blob/57b0477657aa32b3b705f8a6399dbe1396da5db4/proxmox-openid/src/lib.rs#L214
and here: https://github.com/ramosbugs/openidconnect-rs/blob/main/src/verification/mod.rs#L248
This was previously working, and only broke after the upgrade to Pocket ID 0.46.0.
Version and Environment
Pocket ID 0.46.0 Proxmox 8.4.1
Log Output
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 4
- Comments: 22 (9 by maintainers)
@stonith404 Will create a quick fix for this sometime today i think, We were talking about it last night.
It seems that I have the same issue.
{"error":"Failed to verify token claims. This issue may be temporary (60 seconds max).","trace":["Unsupported: unexpected or unsupported JWT typeID+JWT"]}and
{"error":"CSRF token invalid","trace":[]}which appears after refreshing the first site/error.
This should be fixed in
v0.47.0.having same issue with stirling pdf. https://github.com/Stirling-Tools/Stirling-PDF. Was working fine before 0.46.0.