57 references to String
Aspire.Dashboard (2)
DashboardWebApplication.cs (2)
684ClaimValueTypes.String, context.Options.ClaimsIssuer), 687ClaimValueTypes.String, context.Options.ClaimsIssuer)
Certificate.Sample (2)
Startup.cs (2)
24new Claim(ClaimTypes.NameIdentifier, context.ClientCertificate.Subject, ClaimValueTypes.String, context.Options.ClaimsIssuer), 25new Claim(ClaimTypes.Name, context.ClientCertificate.Subject, ClaimValueTypes.String, context.Options.ClaimsIssuer)
CookieSessionSample (1)
Startup.cs (1)
39claims.Add(new Claim(ClaimTypes.Role, "SomeRandomGroup" + i, ClaimValueTypes.String, "IssuedByBob", "OriginalIssuerJoe"));
Microsoft.AspNetCore.Authentication (2)
TicketSerializer.cs (2)
127WriteWithDefault(writer, claim.ValueType, ClaimValueTypes.String); 232var valueType = ReadWithDefault(reader, ClaimValueTypes.String);
Microsoft.AspNetCore.Authentication.Certificate (8)
CertificateAuthenticationHandler.cs (8)
242claims.Add(new Claim("issuer", issuer, ClaimValueTypes.String, Options.ClaimsIssuer)); 250claims.Add(new Claim(ClaimTypes.X500DistinguishedName, value, ClaimValueTypes.String, Options.ClaimsIssuer)); 256claims.Add(new Claim(ClaimTypes.SerialNumber, value, ClaimValueTypes.String, Options.ClaimsIssuer)); 262claims.Add(new Claim(ClaimTypes.Dns, value, ClaimValueTypes.String, Options.ClaimsIssuer)); 268claims.Add(new Claim(ClaimTypes.Name, value, ClaimValueTypes.String, Options.ClaimsIssuer)); 274claims.Add(new Claim(ClaimTypes.Email, value, ClaimValueTypes.String, Options.ClaimsIssuer)); 280claims.Add(new Claim(ClaimTypes.Upn, value, ClaimValueTypes.String, Options.ClaimsIssuer)); 286claims.Add(new Claim(ClaimTypes.Uri, value, ClaimValueTypes.String, Options.ClaimsIssuer));
Microsoft.AspNetCore.Authentication.Cookies (2)
CookieAuthenticationHandler.cs (2)
267new[] { new Claim(SessionIdClaim, _sessionKey, ClaimValueTypes.String, Options.ClaimsIssuer) }, 351new[] { new Claim(SessionIdClaim, _sessionKey, ClaimValueTypes.String, Options.ClaimsIssuer) },
Microsoft.AspNetCore.Authentication.OAuth (6)
ClaimActionCollectionMapExtensions.cs (3)
26collection.MapJsonKey(claimType, jsonKey, ClaimValueTypes.String); 56collection.MapJsonSubKey(claimType, jsonKey, subKey, ClaimValueTypes.String); 86collection.MapCustomJson(claimType, ClaimValueTypes.String, resolver);
DeleteClaimAction.cs (1)
20: base(claimType, ClaimValueTypes.String)
MapAllClaimsAction.cs (2)
18public MapAllClaimsAction() : base("All", ClaimValueTypes.String) 36identity.AddClaim(new Claim(pair.Name, claimValue, ClaimValueTypes.String, issuer));
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
ClaimActionCollectionUniqueExtensions.cs (1)
25collection.MapUniqueJsonKey(claimType, jsonKey, ClaimValueTypes.String);
Microsoft.AspNetCore.Authentication.Test (16)
CertificateTests.cs (7)
583new Claim(ClaimTypes.Name, Expected, ClaimValueTypes.String, context.Options.ClaimsIssuer), 584new Claim("ValidationCount", validationCount.ToString(CultureInfo.InvariantCulture), ClaimValueTypes.String, context.Options.ClaimsIssuer) 654new Claim(ClaimTypes.Name, Expected, ClaimValueTypes.String, context.Options.ClaimsIssuer) 710new Claim(ClaimTypes.Name, Expected, ClaimValueTypes.String, context.Options.ClaimsIssuer), 711new Claim("ValidationCount", validationCount.ToString(CultureInfo.InvariantCulture), ClaimValueTypes.String, context.Options.ClaimsIssuer) 912new Claim(ClaimTypes.NameIdentifier, context.ClientCertificate.Subject, ClaimValueTypes.String, context.Options.ClaimsIssuer), 913new Claim(ClaimTypes.Name, context.ClientCertificate.Subject, ClaimValueTypes.String, context.Options.ClaimsIssuer)
DynamicSchemeTests.cs (1)
119id.AddClaim(new Claim(ClaimTypes.NameIdentifier, Scheme.Name, ClaimValueTypes.String, Scheme.Name));
GoogleTests.cs (1)
706context.Principal.AddIdentity(new ClaimsIdentity(new Claim[] { new Claim("RefreshToken", refreshToken, ClaimValueTypes.String, "Google") }, "Google"));
MicrosoftAccountTests.cs (1)
228context.Principal.AddIdentity(new ClaimsIdentity(new Claim[] { new Claim("RefreshToken", refreshToken, ClaimValueTypes.String, "Microsoft") }, "Microsoft"));
PolicyTests.cs (2)
375id.AddClaim(new Claim(ClaimTypes.NameIdentifier, Scheme.Name, ClaimValueTypes.String, Scheme.Name)); 425id.AddClaim(new Claim(ClaimTypes.NameIdentifier, Scheme.Name, ClaimValueTypes.String, Scheme.Name));
TestHandlers.cs (2)
40id.AddClaim(new Claim(ClaimTypes.NameIdentifier, Scheme.Name, ClaimValueTypes.String, Scheme.Name)); 72id.AddClaim(new Claim(ClaimTypes.NameIdentifier, Scheme.Name, ClaimValueTypes.String, Scheme.Name));
WsFederation\WsFederationTest.cs (1)
337identity.AddClaim(new Claim(identity.RoleClaimType, "Guest", ClaimValueTypes.String));
WsFederation\WsFederationTest_Handler.cs (1)
333identity.AddClaim(new Claim(identity.RoleClaimType, "Guest", ClaimValueTypes.String));
Microsoft.AspNetCore.Authentication.Twitter (4)
TwitterHandler.cs (4)
109new Claim(ClaimTypes.NameIdentifier, accessToken.UserId, ClaimValueTypes.String, ClaimsIssuer), 110new Claim(ClaimTypes.Name, accessToken.ScreenName, ClaimValueTypes.String, ClaimsIssuer), 111new Claim("urn:twitter:userid", accessToken.UserId, ClaimValueTypes.String, ClaimsIssuer), 112new Claim("urn:twitter:screenname", accessToken.ScreenName, ClaimValueTypes.String, ClaimsIssuer)
PathSchemeSelection (1)
Startup.cs (1)
47id.AddClaim(new Claim(ClaimTypes.Name, "Hao", ClaimValueTypes.String, "Api"));
System.Security.Claims (12)
System\Security\Claims\Claim.cs (9)
91_valueType = ClaimValueTypes.String; 149/// <see cref="Claim.ValueType"/> is set to <see cref="ClaimValueTypes.String"/>, 157: this(type, value, ClaimValueTypes.String, ClaimsIdentity.DefaultIssuer, ClaimsIdentity.DefaultIssuer, (ClaimsIdentity?)null) 186/// <param name="valueType">The claim value type. If this parameter is empty or null, then <see cref="ClaimValueTypes.String"/> is used.</param> 206/// <param name="valueType">The claim value type. If this parameter is null, then <see cref="ClaimValueTypes.String"/> is used.</param> 226/// <param name="valueType">The claim value type. If this parameter is null, then <see cref="ClaimValueTypes.String"/> is used.</param> 245/// <param name="valueType">The claim value type. If this parameter is null, then <see cref="ClaimValueTypes.String"/> is used.</param> 258_valueType = string.IsNullOrEmpty(valueType) ? ClaimValueTypes.String : valueType; 433if (!string.Equals(_valueType, ClaimValueTypes.String, StringComparison.Ordinal))
System\Security\Claims\ClaimsIdentity.cs (1)
185SafeAddClaim(new Claim(_nameClaimType, identity.Name, ClaimValueTypes.String, DefaultIssuer, DefaultIssuer, this));
System\Security\Claims\GenericIdentity.cs (1)
86base.AddClaim(new Claim(base.NameClaimType, m_name, ClaimValueTypes.String, ClaimsIdentity.DefaultIssuer, ClaimsIdentity.DefaultIssuer, this));
System\Security\Claims\GenericPrincipal.cs (1)
55roleClaims.Add(new Claim(claimsIdentity.RoleClaimType, role, ClaimValueTypes.String, ClaimsIdentity.DefaultIssuer, ClaimsIdentity.DefaultIssuer, claimsIdentity));