Skip to content

what is ClaimsIdentity.AuthenticationType for ? #8953

@omuleanu

Description

@omuleanu

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

No one assigned

    Labels

    Pri3Indicates issues/PRs that are low priorityarea-System.SecurityIssues related to security practices for .NET developers.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions