mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-11 07:32:57 +03:00
🐛 Bug Report: OIDC login is not working when Caddy is used as a reverse proxy for pocket-id #314
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @PawlikMateusz on GitHub.
Reproduction steps
I'm using Caddy as a reverse proxy for the pocket-id. Everything seems to be working fine, but when I'm trying to login to memos app using pocket-id I get the following error:
failed to exchange token, error: failed to exchange access token: Post "https://<HOSTNAME>/api/oidc/token": stream error: stream ID 1; INTERNAL_ERROR; received from peerCaddyfile config:
Expected behavior
Successful login
Actual Behavior
I got the following error:
failed to exchange token, error: failed to exchange access token: Post "https://<HOSTNAME>/api/oidc/token": stream error: stream ID 1; INTERNAL_ERROR; received from peerVersion and Environment
pokcet-id version v0.38.0
caddy version: 2.9.1
Log Output
No response
@stonith404 commented on GitHub:
I'm converting this to a discussion as this is probably not a bug but a configuration issue.
@kmendell commented on GitHub:
Did you follow the guide here? https://pocket-id.org/docs/client-examples/memos