mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-06 09:13:19 +03:00
🐛 Bug Report: Callback url containing pound symbol #427
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 @ashiksmd on GitHub.
Reproduction steps
I am trying to setup SSO on Synology DSM. The redirect url is https://dsm-domain:5001/#/signin.
After login, I am redirected to "https://dsm-domain:5001/#/signin?code=...state=...". DSM does not recognize the parameters and sends me back to the login page.
When I used Authentik instead, I noticed that the callback url has the anchor part at the end instead like this: "https://dsm-domain:5001/?code=...&state=...#/signin" which works with Synology.
Expected behavior
Redirect urls with anchor names should have the anchor at the end of the url, after the url params.
https://dsm-domain:5001/?code=...&state=...#/signin
Actual Behavior
The callback url had the auth parameters added to the end after the anchor:
https://dsm-domain:5001/#/signin?code=...&state=...
@stonith404 commented on GitHub:
Thanks for reporting this. This should be fixed in
v0.22.0.@ashiksmd commented on GitHub:
I set up a userscript to automatically change the redirect url like this:
This lets me login using pocket-id on desktop, but I am still not able to SSO from mobile devices where I cannot run userscripts.