Skip to content

Ignore hash during callback URL check#2190

Open
herronjo wants to merge 1 commit into
damienbod:mainfrom
herronjo:main
Open

Ignore hash during callback URL check#2190
herronjo wants to merge 1 commit into
damienbod:mainfrom
herronjo:main

Conversation

@herronjo
Copy link
Copy Markdown

@herronjo herronjo commented Mar 18, 2026

At present, the library does not remove the URL hash when validating the redirectUrl, which means that all implicit grant callbacks fail unless checkRedirectUrlWhenCheckingIfIsCallback is false because the hash is still present in the checked URL (which is impossible to provide in the config redirectUrl, as they are dynamic values). This PR remediates this by stripping the hash from the URL during the check, where the URL parameters are removed.

Also seems to automatically remove some stray carriage-returns in the UrlService tests, thanks auto-Prettier!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant