mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-09 14:42:59 +03:00
🐛 Bug Report: When the Public URL has a trailing slash, discovery URLs are incorrect #336
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 @nikdoof on GitHub.
Reproduction steps
When the Public URL, defined by env vars, has a trailing slash, the OIDC discovery endpoint generates incorrect URLs:
Expected behavior
Valid URLs should be generated.
Actual Behavior
Resulting OIDC discovery:
https://id.doofnet.uk/.well-known/openid-configuration
Pocket ID doesn't correct obvious URL errors as such, so returns a 404 for each URL provided.
Version and Environment
v0.35.0, Container ran in Kubernetes, fronted by Traefik, using Caddy in-image.
Log Output
No response