Skip to content

Commit

Permalink
fix: use parameters for login_hint
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff-Tian committed Dec 1, 2023
1 parent b380d27 commit d01a86f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions hosts/main/Pages/ExternalLogin/Challenge.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,11 @@ public IActionResult OnGet(string scheme, string returnUrl)
{
{ "returnUrl", returnUrl },
{ "scheme", scheme },
{ "login_hint", "[email protected]" },
{ "loginHint", "[email protected]" }
},

// The authentication properties supports to collections, Items and Parameters. The difference is that the Parameters is only available during challenge, while the Items are saved and available both during challenge and when the response is handled. Since the login_hint is set on challenge, it is suggested that the Parameters collection is used for it:
Parameters = {
{ "login_hint", "[email protected]" }
}
};

Expand Down

0 comments on commit d01a86f

Please sign in to comment.