Skip to content

Commit

Permalink
Generic identifier for example (dotnet#29447)
Browse files Browse the repository at this point in the history
  • Loading branch information
guardrex authored and Donciavas committed Feb 7, 2024
1 parent cd5b1db commit 6d2ab2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aspnetcore/blazor/security/server/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,11 +262,11 @@ public class CustomAuthenticationStateProvider : AuthenticationStateProvider
return Task.FromResult(new AuthenticationState(user));
}

public void AuthenticateUser(string emailAddress)
public void AuthenticateUser(string userIdentifier)
{
var identity = new ClaimsIdentity(new[]
{
new Claim(ClaimTypes.Name, emailAddress),
new Claim(ClaimTypes.Name, userIdentifier),
}, "Custom Authentication");

var user = new ClaimsPrincipal(identity);
Expand Down

0 comments on commit 6d2ab2c

Please sign in to comment.