-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Labels
Pri3Indicates issues/PRs that are low priorityIndicates issues/PRs that are low priorityarea-System.SecurityIssues related to security practices for .NET developers.Issues related to security practices for .NET developers.
Milestone
Description
I'm refering to this page:
https://learn.microsoft.com/en-us/dotnet/api/system.security.claims.claimsidentity.authenticationtype?view=net-7.0#system-security-claims-claimsidentity-authenticationtype
I'm using it like this:
var identity = new ClaimsIdentity(
new[] { new Claim(ClaimTypes.Name, id.ToString(CultureInfo.InvariantCulture)) },
"ApplicationCookie", // not sure what this string should be, tried a random string and it worked
ClaimTypes.Name,
ClaimTypes.Role);
as you can see from my comments, I tried giving it a random string as value ( aasdf123
), and it made no difference
Metadata
Metadata
Assignees
Labels
Pri3Indicates issues/PRs that are low priorityIndicates issues/PRs that are low priorityarea-System.SecurityIssues related to security practices for .NET developers.Issues related to security practices for .NET developers.