32 references to AddIdentity
BasicWebSite (1)
BasicAuthenticationHandler.cs (1)
25principal.AddIdentity(new ClaimsIdentity(
ClaimsTransformation (1)
ClaimsTransformer.cs (1)
19transformed.AddIdentity(new ClaimsIdentity(new Claim[]
Microsoft.AspNetCore.Authentication.Abstractions (1)
AuthenticationTicket.cs (1)
64principal.AddIdentity(identity.Clone());
Microsoft.AspNetCore.Authentication.Cookies (1)
CookieAuthenticationHandler.cs (1)
138newPrincipal.AddIdentity(identity.Clone());
Microsoft.AspNetCore.Authentication.Test (12)
CookieTests.cs (1)
1787p.AddIdentity(id);
DynamicSchemeTests.cs (1)
124principal.AddIdentity(id);
GoogleTests.cs (2)
706context.Principal.AddIdentity(new ClaimsIdentity(new Claim[] { new Claim("RefreshToken", refreshToken, ClaimValueTypes.String, "Google") }, "Google")); 1138p.AddIdentity(id);
MicrosoftAccountTests.cs (1)
228context.Principal.AddIdentity(new ClaimsIdentity(new Claim[] { new Claim("RefreshToken", refreshToken, ClaimValueTypes.String, "Microsoft") }, "Microsoft"));
PolicyTests.cs (2)
376principal.AddIdentity(id); 426principal.AddIdentity(id);
TestHandlers.cs (2)
41principal.AddIdentity(id); 73principal.AddIdentity(id);
TicketSerializerTests.cs (3)
39ticket.Principal.AddIdentity(new ClaimsIdentity("misc") { BootstrapContext = "bootstrap" }); 62ticket.Principal.AddIdentity(new ClaimsIdentity("misc") { Actor = actor }); 97ticket.Principal.AddIdentity(new ClaimsIdentity(new[] { claim }, "misc"));
Microsoft.AspNetCore.Authorization.Test (2)
AuthorizationMiddlewareTests.cs (1)
1030validUser.AddIdentity(bearerIdentity);
DefaultAuthorizationServiceTests.cs (1)
589user.AddIdentity(new ClaimsIdentity(
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionDispatcher.cs (1)
700newContext.User.AddIdentity(identity.Clone());
Microsoft.AspNetCore.Http.Connections.Tests (3)
HttpConnectionDispatcherTests.cs (3)
1854context.User.AddIdentity(new ClaimsIdentity()); 1906context.User.AddIdentity(new ClaimsIdentity()); 1955context.User.AddIdentity(new ClaimsIdentity());
Microsoft.AspNetCore.Identity.InMemory.Test (1)
FunctionalTest.cs (1)
178c.NewPrincipal.AddIdentity(newId);
Microsoft.AspNetCore.Mvc.Core.Test (1)
Authorization\AuthorizeFilterTest.cs (1)
595validUser.AddIdentity(bearerIdentity);
Microsoft.AspNetCore.Shared.Tests (4)
SecurityHelperTests.cs (4)
56existingPrincipal.AddIdentity(identityNoAuthTypeWithClaim); 58existingPrincipal.AddIdentity(identityEmptyWithAuthType); 65newPrincipal.AddIdentity(newEmptyIdentity); 66newPrincipal.AddIdentity(identityTwo);
Microsoft.AspNetCore.SignalR.Tests (2)
HubConnectionHandlerTests.cs (2)
2245client.Connection.User.AddIdentity(new ClaimsIdentity(new[] { new Claim(ClaimTypes.NameIdentifier, "name") })); 2347client.Connection.User.AddIdentity(new ClaimsIdentity(new[] { new Claim(ClaimTypes.NameIdentifier, "name") }));
Microsoft.AspNetCore.Tests (1)
WebApplicationTests.cs (1)
2865principal.AddIdentity(id);
System.Security.Claims (1)
System\Security\Claims\GenericPrincipal.cs (1)
62base.AddIdentity(claimsIdentity);