52 references to ClaimValueTypes
Aspire.Dashboard (5)
DashboardWebApplication.cs (5)
772
ClaimValueTypes
.String, context.Options.ClaimsIssuer),
775
ClaimValueTypes
.String, context.Options.ClaimsIssuer)
929
(true, true) => options => options.ClaimActions.MapUniqueJsonKey(action.ClaimType, action.JsonKey, action.ValueType ??
ClaimValueTypes
.String),
930
(true, _) => options => options.ClaimActions.MapJsonKey(action.ClaimType, action.JsonKey, action.ValueType ??
ClaimValueTypes
.String),
931
(false, _) => options => options.ClaimActions.MapJsonSubKey(action.ClaimType, action.JsonKey, action.SubKey!, action.ValueType ??
ClaimValueTypes
.String)
Aspire.Dashboard.Tests (4)
DashboardOptionsTests.cs (4)
343
Assert.Contains(oidcOption.ClaimActions, x => x.ClaimType == claimAction.ClaimType && x.ValueType ==
ClaimValueTypes
.String);
372
Assert.Contains(oidcOption.ClaimActions, x => x.ClaimType == claimAction.ClaimType && x.ValueType ==
ClaimValueTypes
.String);
408
Assert.Contains(oidcOption.ClaimActions, x => x.ClaimType == claimAction.ClaimType && x.ValueType ==
ClaimValueTypes
.String);
439
ValueType =
ClaimValueTypes
.Integer,
Microsoft.AspNetCore.Authentication (2)
TicketSerializer.cs (2)
139
WriteWithDefault(writer, claim.ValueType,
ClaimValueTypes
.String);
244
var valueType = ReadWithDefault(reader,
ClaimValueTypes
.String);
Microsoft.AspNetCore.Authentication.Cookies (2)
CookieAuthenticationHandler.cs (2)
267
new[] { new Claim(SessionIdClaim, _sessionKey,
ClaimValueTypes
.String, Options.ClaimsIssuer) },
351
new[] { new Claim(SessionIdClaim, _sessionKey,
ClaimValueTypes
.String, Options.ClaimsIssuer) },
Microsoft.AspNetCore.Authentication.OAuth (6)
ClaimActionCollectionMapExtensions.cs (3)
26
collection.MapJsonKey(claimType, jsonKey,
ClaimValueTypes
.String);
56
collection.MapJsonSubKey(claimType, jsonKey, subKey,
ClaimValueTypes
.String);
86
collection.MapCustomJson(claimType,
ClaimValueTypes
.String, resolver);
DeleteClaimAction.cs (1)
20
: base(claimType,
ClaimValueTypes
.String)
MapAllClaimsAction.cs (2)
18
public MapAllClaimsAction() : base("All",
ClaimValueTypes
.String)
36
identity.AddClaim(new Claim(pair.Name, claimValue,
ClaimValueTypes
.String, issuer));
mscorlib (1)
src\runtime\src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
855
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Claims.
ClaimValueTypes
))]
netstandard (1)
netstandard.cs (1)
1839
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Claims.
ClaimValueTypes
))]
System.Security.Claims (18)
System\Security\Claims\Claim.cs (15)
91
_valueType =
ClaimValueTypes
.String;
149
/// <see cref="Claim.ValueType"/> is set to <see cref="
ClaimValueTypes
.String"/>,
155
/// <seealso cref="
ClaimValueTypes
"/>
157
: this(type, value,
ClaimValueTypes
.String, ClaimsIdentity.DefaultIssuer, ClaimsIdentity.DefaultIssuer, (ClaimsIdentity?)null)
175
/// <seealso cref="
ClaimValueTypes
"/>
186
/// <param name="valueType">The claim value type. If this parameter is empty or null, then <see cref="
ClaimValueTypes
.String"/> is used.</param>
195
/// <seealso cref="
ClaimValueTypes
"/>
206
/// <param name="valueType">The claim value type. If this parameter is null, then <see cref="
ClaimValueTypes
.String"/> is used.</param>
215
/// <seealso cref="
ClaimValueTypes
"/>
226
/// <param name="valueType">The claim value type. If this parameter is null, then <see cref="
ClaimValueTypes
.String"/> is used.</param>
233
/// <seealso cref="
ClaimValueTypes
"/>
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;
373
/// <seealso cref="
ClaimValueTypes
"/>
433
if (!string.Equals(_valueType,
ClaimValueTypes
.String, StringComparison.Ordinal))
System\Security\Claims\ClaimsIdentity.cs (1)
186
SafeAddClaim(new Claim(_nameClaimType, identity.Name,
ClaimValueTypes
.String, DefaultIssuer, DefaultIssuer, this));
System\Security\Claims\GenericIdentity.cs (1)
86
base.AddClaim(new Claim(base.NameClaimType, m_name,
ClaimValueTypes
.String, ClaimsIdentity.DefaultIssuer, ClaimsIdentity.DefaultIssuer, this));
System\Security\Claims\GenericPrincipal.cs (1)
55
roleClaims.Add(new Claim(claimsIdentity.RoleClaimType, role,
ClaimValueTypes
.String, ClaimsIdentity.DefaultIssuer, ClaimsIdentity.DefaultIssuer, claimsIdentity));
System.Security.Principal.Windows (13)
System\Security\Principal\WindowsIdentity.cs (13)
1052
_userClaims.Add(new Claim(NameClaimType, Name,
ClaimValueTypes
.String, _issuerName, _issuerName, this));
1117
claim = new Claim(ClaimTypes.PrimaryGroupSid, groupSid.Value,
ClaimValueTypes
.String, _issuerName, _issuerName, this);
1123
claim = new Claim(ClaimTypes.GroupSid, groupSid.Value,
ClaimValueTypes
.String, _issuerName, _issuerName, this);
1131
claim = new Claim(ClaimTypes.DenyOnlyPrimaryGroupSid, groupSid.Value,
ClaimValueTypes
.String, _issuerName, _issuerName, this);
1137
claim = new Claim(ClaimTypes.DenyOnlySid, groupSid.Value,
ClaimValueTypes
.String, _issuerName, _issuerName, this);
1170
claim = new Claim(ClaimTypes.PrimarySid, sid.Value,
ClaimValueTypes
.String, _issuerName, _issuerName, this);
1176
claim = new Claim(ClaimTypes.DenyOnlyPrimarySid, sid.Value,
ClaimValueTypes
.String, _issuerName, _issuerName, this);
1218
Claim claim = new Claim(claimType, groupSid.Value,
ClaimValueTypes
.String, _issuerName, _issuerName, this);
1226
Claim claim = new Claim(claimType, groupSid.Value,
ClaimValueTypes
.String, _issuerName, _issuerName, this);
1270
Claim c = new Claim(name, Marshal.PtrToStringUni(stringPointers[item])!,
ClaimValueTypes
.String, _issuerName, _issuerName, this);
1282
Claim c = new Claim(name, intValues[item].ToString(CultureInfo.InvariantCulture),
ClaimValueTypes
.Integer64, _issuerName, _issuerName, this);
1295
Claim c = new Claim(name, ((ulong)uintValues[item]).ToString(CultureInfo.InvariantCulture),
ClaimValueTypes
.UInteger64, _issuerName, _issuerName, this);
1310
ClaimValueTypes
.Boolean,