51 instantiations of AuthenticationToken
Identity.ExternalClaims (1)
Startup.cs (1)
54tokens.Add(new AuthenticationToken() { Name = "TicketCreated", Value = DateTime.UtcNow.ToString(CultureInfo.InvariantCulture) });
Microsoft.AspNetCore.Authentication.Abstractions (1)
TokenExtensions.cs (1)
108tokens.Add(new AuthenticationToken { Name = name, Value = token });
Microsoft.AspNetCore.Authentication.Core.Test (19)
TokenExtensionTests.cs (19)
17var tok1 = new AuthenticationToken { Name = "One", Value = "1" }; 18var tok2 = new AuthenticationToken { Name = "Two", Value = "2" }; 19var tok3 = new AuthenticationToken { Name = "Three", Value = "3" }; 36var tok1 = new AuthenticationToken { Name = "One", Value = "1" }; 37var tok2 = new AuthenticationToken { Name = "Two", Value = "2" }; 38var tok3 = new AuthenticationToken { Name = "Three", Value = "3" }; 45props.StoreTokens(new[] { new AuthenticationToken { Name = "Zero", Value = "0" } }); 59var tok1 = new AuthenticationToken { Name = "One", Value = "1" }; 60var tok2 = new AuthenticationToken { Name = "Two", Value = "2" }; 61var tok3 = new AuthenticationToken { Name = "Three", Value = "3" }; 83var tok1 = new AuthenticationToken { Name = "One", Value = "1" }; 84var tok2 = new AuthenticationToken { Name = "Two", Value = "2" }; 85var tok3 = new AuthenticationToken { Name = "Three", Value = "3" }; 106var tok1 = new AuthenticationToken { Name = "One", Value = "1" }; 107var tok2 = new AuthenticationToken { Name = "Two", Value = "2" }; 108var tok3 = new AuthenticationToken { Name = "Three", Value = "3" }; 158var tok1 = new AuthenticationToken { Name = "One", Value = "1" }; 159var tok2 = new AuthenticationToken { Name = "Two", Value = "2" }; 160var tok3 = new AuthenticationToken { Name = "Three", Value = "3" };
Microsoft.AspNetCore.Authentication.JwtBearer (1)
JwtBearerHandler.cs (1)
172new AuthenticationToken { Name = "access_token", Value = token }
Microsoft.AspNetCore.Authentication.OAuth (4)
OAuthHandler.cs (4)
152authTokens.Add(new AuthenticationToken { Name = "access_token", Value = tokens.AccessToken }); 155authTokens.Add(new AuthenticationToken { Name = "refresh_token", Value = tokens.RefreshToken }); 160authTokens.Add(new AuthenticationToken { Name = "token_type", Value = tokens.TokenType }); 171authTokens.Add(new AuthenticationToken
Microsoft.AspNetCore.Authentication.OpenIdConnect (5)
OpenIdConnectHandler.cs (5)
1120tokens.Add(new AuthenticationToken { Name = OpenIdConnectParameterNames.AccessToken, Value = message.AccessToken }); 1125tokens.Add(new AuthenticationToken { Name = OpenIdConnectParameterNames.IdToken, Value = message.IdToken }); 1130tokens.Add(new AuthenticationToken { Name = OpenIdConnectParameterNames.RefreshToken, Value = message.RefreshToken }); 1135tokens.Add(new AuthenticationToken { Name = OpenIdConnectParameterNames.TokenType, Value = message.TokenType }); 1145tokens.Add(new AuthenticationToken { Name = "expires_at", Value = expiresAt.ToString("o", CultureInfo.InvariantCulture) });
Microsoft.AspNetCore.Authentication.Test (16)
TokenExtensionTests.cs (16)
13var tok1 = new AuthenticationToken { Name = "One", Value = "1" }; 14var tok2 = new AuthenticationToken { Name = "Two", Value = "2" }; 15var tok3 = new AuthenticationToken { Name = "Three", Value = "3" }; 32var tok1 = new AuthenticationToken { Name = "One", Value = "1" }; 33var tok2 = new AuthenticationToken { Name = "Two", Value = "2" }; 34var tok3 = new AuthenticationToken { Name = "Three", Value = "3" }; 41props.StoreTokens(new[] { new AuthenticationToken { Name = "Zero", Value = "0" } }); 55var tok1 = new AuthenticationToken { Name = "One", Value = "1" }; 56var tok2 = new AuthenticationToken { Name = "Two", Value = "2" }; 57var tok3 = new AuthenticationToken { Name = "Three", Value = "3" }; 79var tok1 = new AuthenticationToken { Name = "One", Value = "1" }; 80var tok2 = new AuthenticationToken { Name = "Two", Value = "2" }; 81var tok3 = new AuthenticationToken { Name = "Three", Value = "3" }; 102var tok1 = new AuthenticationToken { Name = "One", Value = "1" }; 103var tok2 = new AuthenticationToken { Name = "Two", Value = "2" }; 104var tok3 = new AuthenticationToken { Name = "Three", Value = "3" };
Microsoft.AspNetCore.Authentication.Twitter (2)
TwitterHandler.cs (2)
131new AuthenticationToken { Name = "access_token", Value = accessToken.Token }, 132new AuthenticationToken { Name = "access_token_secret", Value = accessToken.TokenSecret }
Microsoft.AspNetCore.Identity.InMemory.Test (2)
ControllerTest.cs (2)
73new AuthenticationToken { Name = "refresh_token", Value = "refresh" }, 74new AuthenticationToken { Name = "access_token", Value = "access" }
58 references to AuthenticationToken
Identity.ExternalClaims (1)
Startup.cs (1)
53List<AuthenticationToken> tokens = ctx.Properties.GetTokens().ToList();
Microsoft.AspNetCore.Authentication.Abstractions (6)
TokenExtensions.cs (6)
21public static void StoreTokens(this AuthenticationProperties properties, IEnumerable<AuthenticationToken> tokens) 28foreach (var t in oldTokens) 35foreach (var token in tokens) 91/// Returns all of the <see cref="AuthenticationToken"/> instances contained in the properties. 95public static IEnumerable<AuthenticationToken> GetTokens(this AuthenticationProperties properties) 99var tokens = new List<AuthenticationToken>();
Microsoft.AspNetCore.Authentication.Core.Test (24)
TokenExtensionTests.cs (24)
16var tokens = new List<AuthenticationToken>(); 17var tok1 = new AuthenticationToken { Name = "One", Value = "1" }; 18var tok2 = new AuthenticationToken { Name = "Two", Value = "2" }; 19var tok3 = new AuthenticationToken { Name = "Three", Value = "3" }; 35var tokens = new List<AuthenticationToken>(); 36var tok1 = new AuthenticationToken { Name = "One", Value = "1" }; 37var tok2 = new AuthenticationToken { Name = "Two", Value = "2" }; 38var tok3 = new AuthenticationToken { Name = "Three", Value = "3" }; 58var tokens = new List<AuthenticationToken>(); 59var tok1 = new AuthenticationToken { Name = "One", Value = "1" }; 60var tok2 = new AuthenticationToken { Name = "Two", Value = "2" }; 61var tok3 = new AuthenticationToken { Name = "Three", Value = "3" }; 82var tokens = new List<AuthenticationToken>(); 83var tok1 = new AuthenticationToken { Name = "One", Value = "1" }; 84var tok2 = new AuthenticationToken { Name = "Two", Value = "2" }; 85var tok3 = new AuthenticationToken { Name = "Three", Value = "3" }; 105var tokens = new List<AuthenticationToken>(); 106var tok1 = new AuthenticationToken { Name = "One", Value = "1" }; 107var tok2 = new AuthenticationToken { Name = "Two", Value = "2" }; 108var tok3 = new AuthenticationToken { Name = "Three", Value = "3" }; 157var tokens = new List<AuthenticationToken>(); 158var tok1 = new AuthenticationToken { Name = "One", Value = "1" }; 159var tok2 = new AuthenticationToken { Name = "Two", Value = "2" }; 160var tok3 = new AuthenticationToken { Name = "Three", Value = "3" };
Microsoft.AspNetCore.Authentication.OAuth (1)
OAuthHandler.cs (1)
150var authTokens = new List<AuthenticationToken>();
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
OpenIdConnectHandler.cs (1)
1116var tokens = new List<AuthenticationToken>();
Microsoft.AspNetCore.Authentication.Test (22)
TestExtensions.cs (2)
64public static Task DescribeAsync(this HttpResponse res, IEnumerable<AuthenticationToken> tokens) 71foreach (var token in tokens)
TokenExtensionTests.cs (20)
12var tokens = new List<AuthenticationToken>(); 13var tok1 = new AuthenticationToken { Name = "One", Value = "1" }; 14var tok2 = new AuthenticationToken { Name = "Two", Value = "2" }; 15var tok3 = new AuthenticationToken { Name = "Three", Value = "3" }; 31var tokens = new List<AuthenticationToken>(); 32var tok1 = new AuthenticationToken { Name = "One", Value = "1" }; 33var tok2 = new AuthenticationToken { Name = "Two", Value = "2" }; 34var tok3 = new AuthenticationToken { Name = "Three", Value = "3" }; 54var tokens = new List<AuthenticationToken>(); 55var tok1 = new AuthenticationToken { Name = "One", Value = "1" }; 56var tok2 = new AuthenticationToken { Name = "Two", Value = "2" }; 57var tok3 = new AuthenticationToken { Name = "Three", Value = "3" }; 78var tokens = new List<AuthenticationToken>(); 79var tok1 = new AuthenticationToken { Name = "One", Value = "1" }; 80var tok2 = new AuthenticationToken { Name = "Two", Value = "2" }; 81var tok3 = new AuthenticationToken { Name = "Three", Value = "3" }; 101var tokens = new List<AuthenticationToken>(); 102var tok1 = new AuthenticationToken { Name = "One", Value = "1" }; 103var tok2 = new AuthenticationToken { Name = "Two", Value = "2" }; 104var tok3 = new AuthenticationToken { Name = "Three", Value = "3" };
Microsoft.AspNetCore.Identity (3)
ExternalLoginInfo.cs (2)
34/// The <see cref="AuthenticationToken"/>s associated with this login. 36public IEnumerable<AuthenticationToken>? AuthenticationTokens { get; set; }
SignInManager.cs (1)
737foreach (var token in externalLogin.AuthenticationTokens)