🐛 Bug Report: 400 error when trying to authorize #499

Closed
opened 2025-10-09 16:50:28 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @tiehfood on GitHub.

Reproduction steps

I tried to use Grafana with Pocket ID.
This is my current configuration:
image

I successfully get redirected to PocketID, but when I try to login I get a 400 error from the backend:
image

Backend call: https://********************/api/oidc/authorize/new-client

Expected behavior

If I klick on "Sign In" I should successfully be signed in.

Actual Behavior

Backend sends a 400 error and I'm not logged in

Originally created by @tiehfood on GitHub. ### Reproduction steps I tried to use Grafana with Pocket ID. This is my current configuration: <img width="445" alt="image" src="https://github.com/user-attachments/assets/43f83df7-d277-48fb-ab88-c0e389c0cd80"> I successfully get redirected to PocketID, but when I try to login I get a 400 error from the backend: <img width="563" alt="image" src="https://github.com/user-attachments/assets/a02b989d-79bd-490d-9058-c87bafd09890"> Backend call: https://********************/api/oidc/authorize/new-client ### Expected behavior If I klick on "Sign In" I should successfully be signed in. ### Actual Behavior Backend sends a 400 error and I'm not logged in
OVERLORD added the bug label 2025-10-09 16:50:28 +03:00
Author
Owner

@tiehfood commented on GitHub:

Ah, you were right! I needed to configure the root_url setting in Grafana because Grafana is behind a reverse proxy.
Thanks! Great tool I really like it so far :)

@tiehfood commented on GitHub: Ah, you were right! I needed to configure the `root_url` setting in Grafana because Grafana is behind a reverse proxy. Thanks! Great tool I really like it so far :)
Author
Owner

@tiehfood commented on GitHub:

Solved

@tiehfood commented on GitHub: Solved
Author
Owner

@stonith404 commented on GitHub:

The callback URL is probably wrong. Can you verify that you've entered the correct callback URL in the Pocket ID settings?

@stonith404 commented on GitHub: The callback URL is probably wrong. Can you verify that you've entered the correct callback URL in the Pocket ID settings?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/pocket-id-pocket-id-2#499