Skip to content

Commit

Permalink
fix(error-redirect): use query-safe fragment as recommended in the la…
Browse files Browse the repository at this point in the history
…test OAuth 2 security best practices
  • Loading branch information
aomader committed Dec 15, 2024
1 parent 8458ae0 commit 4be69fd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ private string BuildRedirectUri(AuthorizeResponse response)

if (response.IsError && !uri.Contains('#'))
{
// https://tools.ietf.org/html/draft-bradley-oauth-open-redirector-00
uri += "#_=_";
// https://datatracker.ietf.org/doc/html/draft-ietf-oauth-security-topics-29#section-4.1.3
uri += "#_";
}

return uri;
Expand Down

0 comments on commit 4be69fd

Please sign in to comment.