Skip to content

OAuth authorization callback is not working where there is a # in the URL #24755

Discussion options

You must be logged in to vote

👋 Welcome!

I think in this case we are parsing the hash mark (#) as a fragment identifier.

The fragment identifier introduced by a hash mark # is the optional last part of a URL for a document. It is typically used to identify a portion of that document (to scroll to a specific element id).

We rebuild the URI in accordance with RFC3986, where section 3 of RFC3986 indicates the fragment must be at the end of the URI:

The generic URI syntax consists of a hierarchical sequence of
components referred to as the scheme, authority, path, query, and
fragment.

 URI  = scheme ":" hier-part [ "?" query ] [ "#" fragment ]

Ref: https://tools.ietf.org/html/rfc3986

So in this case we are rebuilding…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment