mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-11 07:42:58 +03:00
🐛 Bug Report: please write a guide to use caddy proxy before pocketid #459
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 @PaddyPat on GitHub.
Reproduction steps
Tried your guide, thanks for this nice tool!
Successfully auth via passkey in pocketid (pocketid behind main caddy for all my services)
If I access pocketid /.wellknown from my browser / client, I receive a 200 and see the text for auth urls.
If I use for example mealie (also behind caddy proxy) and enable oidc, I receive a 40x error
secret and key are valid, tried it several times.
maybe it would help to see a caddy example before your pocketid and mealie as oidc.
Br
Expected behavior
should work ;-)
Actual Behavior
cant auth - works direct via pocketit url but not as oidc provider
@stonith404 commented on GitHub:
Ok but in that case the issue isn't Caddy because FreshRSS can access Pocket ID. As I don't know your entire setup I can't really help you further. But we know now that the issue isn't Pocket ID or Caddy.
I've successfully configured Pocket ID with Mealie with the following configuration:
@PaddyPat commented on GitHub:
Caddyfile (my caddy proxy, not internal from this project)
docker-compose pocket-id + .env:
docker-compose mealie:
ufw allow access from 10.201.110.2 to main caddy container so I can reach from mealie via curl -vv https://pocketid.server01.domain.com/.well-known/openid-configuration
log in pocket-id:
log in mealie:
also I tried it with freshrss (also 400/403) - I can't reach /api:
pocketid | [GIN] 2024/10/28 - 07:19:53 | 403 | 375.732µs | 30.40.50.60 | POST "/api/oidc/authorize"
pocketid | [GIN] 2024/10/28 - 07:19:53 | 403 | 401.208µs | 30.40.50.60 | POST "/api/oidc/authorize"
pocketid | [GIN] 2024/10/28 - 07:19:54 | 400 | 562.693µs | 30.40.50.60 | POST "/api/oidc/authorize/new-client"
pocketid | [GIN] 2024/10/28 - 07:19:54 | 400 | 588.623µs | 30.40.50.60 | POST "/api/oidc/authorize/new-client"
@PaddyPat commented on GitHub:
freshrss works, issue was in callback url at the end also a slash
https://freshrss.server01.domain.com/i/oidc/
@stonith404 commented on GitHub:
With Freshrss you get the error that the client secret is wrong but "/.well-known/openid-configuration" is accessible, right?
If you get this error the issue is that the client secret is wrong, there is no other cause. Please double-check the client secret for any extra spaces or formatting issues to ensure it’s entered exactly as provided.
@stonith404 commented on GitHub:
Please share the errors that you get from Mealie e.g. screenshots or logs.
@PaddyPat commented on GitHub:
Thanks for your help!
It was mealie image related!
(had oidc issues with image: hkotel/mealie -> ghcr.io/mealie-recipes/mealie:v2.0.0 works fine)