25 references to AddClaim
mscorlib (2)
system\security\claims\ClaimsIdentity.cs (1)
677
AddClaim
(claim);
system\security\principal\genericidentity.cs (1)
160
base.
AddClaim
(new Claim(base.NameClaimType, m_name, ClaimValueTypes.String, ClaimsIdentity.DefaultIssuer, ClaimsIdentity.DefaultIssuer, this));
System.IdentityModel (20)
System\IdentityModel\Claims\ClaimsConversionHelper.cs (1)
52
claimsIdentity.
AddClaim
(CreateClaimFromWcfClaim(claimset[i], issuer));
System\IdentityModel\Tokens\KerberosSecurityTokenHandler.cs (2)
98
wi.
AddClaim
(new Claim(ClaimTypes.AuthenticationInstant, XmlConvert.ToString(DateTime.UtcNow, DateTimeFormats.Generated), ClaimValueTypes.DateTime));
99
wi.
AddClaim
(new Claim(ClaimTypes.AuthenticationMethod, AuthenticationMethods.Windows, ClaimValueTypes.String));
System\IdentityModel\Tokens\RsaSecurityTokenHandler.cs (2)
171
identity.
AddClaim
(new Claim(ClaimTypes.AuthenticationInstant, XmlConvert.ToString(DateTime.UtcNow, DateTimeFormats.Generated), ClaimValueTypes.DateTime));
172
identity.
AddClaim
(new Claim(ClaimTypes.AuthenticationMethod, AuthenticationMethods.Signature));
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (4)
1806
subject.
AddClaim
(claim);
1863
subject.
AddClaim
(claim);
1977
subject.
AddClaim
(
1985
subject.
AddClaim
(new Claim(ClaimTypes.AuthenticationInstant, XmlConvert.ToString(statement.AuthenticationInstant.ToUniversalTime(), DateTimeFormats.Generated), ClaimValueTypes.DateTime, issuer));
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (4)
1307
subject.
AddClaim
(new Claim(claimType, attr.AttributeValues[k], claimValueType, issuer, originalIssuer));
1376
subject.
AddClaim
(claim);
1406
subject.
AddClaim
(new Claim(ClaimTypes.AuthenticationMethod, NormalizeAuthenticationType(samlStatement.AuthenticationMethod), ClaimValueTypes.String, issuer));
1407
subject.
AddClaim
(new Claim(ClaimTypes.AuthenticationInstant, XmlConvert.ToString(samlStatement.AuthenticationInstant.ToUniversalTime(), DateTimeFormats.Generated), ClaimValueTypes.DateTime, issuer));
System\IdentityModel\Tokens\SecurityTokenDescriptor.cs (2)
246
this.Subject.
AddClaim
(
249
this.Subject.
AddClaim
(
System\IdentityModel\Tokens\WindowsUserNameSecurityTokenHandler.cs (2)
104
windowsIdentity.
AddClaim
(new Claim(ClaimTypes.AuthenticationInstant, XmlConvert.ToString(DateTime.UtcNow, DateTimeFormats.Generated), ClaimValueTypes.DateTime));
105
windowsIdentity.
AddClaim
(new Claim(ClaimTypes.AuthenticationMethod, AuthenticationMethods.Password));
System\IdentityModel\Tokens\X509SecurityTokenHandler.cs (3)
545
identity.
AddClaim
(new Claim(ClaimTypes.AuthenticationMethod, AuthenticationMethods.X509));
577
windowsIdentity.
AddClaim
(new Claim(ClaimTypes.AuthenticationMethod, AuthenticationMethods.X509));
586
identity.
AddClaim
(new Claim(ClaimTypes.AuthenticationInstant, XmlConvert.ToString(DateTime.UtcNow, DateTimeFormats.Generated), ClaimValueTypes.DateTime));
System.ServiceModel (2)
System\ServiceModel\Security\IdentityModelServiceAuthorizationManager.cs (2)
569
claimsIdentity.
AddClaim
(
586
claimsIdentity.
AddClaim
(
System.Web (1)
Security\FormsIdentity.cs (1)
118
base.
AddClaim
(new Claim(base.NameClaimType, _Ticket.Name, ClaimValueTypes.String, "Forms", "Forms", this));