39 references to GetTokenValue
Microsoft.AspNetCore.Authentication.Abstractions (2)
TokenExtensions.cs (2)
105var token = properties.GetTokenValue(name); 140return result?.Properties?.GetTokenValue(tokenName);
Microsoft.AspNetCore.Authentication.Core.Test (15)
TokenExtensionTests.cs (15)
25Assert.Equal("1", props.GetTokenValue("One")); 26Assert.Equal("2", props.GetTokenValue("Two")); 27Assert.Equal("3", props.GetTokenValue("Three")); 47Assert.Equal("0", props.GetTokenValue("Zero")); 48Assert.Null(props.GetTokenValue("One")); 49Assert.Null(props.GetTokenValue("Two")); 50Assert.Null(props.GetTokenValue("Three")); 72Assert.Equal(".1", props.GetTokenValue("One")); 73Assert.Equal(".2", props.GetTokenValue("Two")); 74Assert.Equal(".3", props.GetTokenValue("Three")); 95Assert.Equal(".11", props.GetTokenValue("One")); 96Assert.Equal(".22", props.GetTokenValue("Two")); 97Assert.Equal(".33", props.GetTokenValue("Three")); 117Assert.Null(props.GetTokenValue("ONE")); 118Assert.Null(props.GetTokenValue("Jigglypuff"));
Microsoft.AspNetCore.Authentication.Test (15)
TokenExtensionTests.cs (15)
21Assert.Equal("1", props.GetTokenValue("One")); 22Assert.Equal("2", props.GetTokenValue("Two")); 23Assert.Equal("3", props.GetTokenValue("Three")); 43Assert.Equal("0", props.GetTokenValue("Zero")); 44Assert.Null(props.GetTokenValue("One")); 45Assert.Null(props.GetTokenValue("Two")); 46Assert.Null(props.GetTokenValue("Three")); 68Assert.Equal(".1", props.GetTokenValue("One")); 69Assert.Equal(".2", props.GetTokenValue("Two")); 70Assert.Equal(".3", props.GetTokenValue("Three")); 91Assert.Equal(".11", props.GetTokenValue("One")); 92Assert.Equal(".22", props.GetTokenValue("Two")); 93Assert.Equal(".33", props.GetTokenValue("Three")); 113Assert.Null(props.GetTokenValue("ONE")); 114Assert.Null(props.GetTokenValue("Jigglypuff"));
OpenIdConnectSample (1)
Startup.cs (1)
237var refreshToken = props.GetTokenValue("refresh_token");
SocialSample (6)
Startup.cs (6)
308var refreshToken = authProperties.GetTokenValue("refresh_token"); 359var accessToken = authProperties.GetTokenValue("access_token"); 499await response.WriteAsync("Access Token: " + authProperties.GetTokenValue("access_token") + "<br>"); 500await response.WriteAsync("Refresh Token: " + authProperties.GetTokenValue("refresh_token") + "<br>"); 501await response.WriteAsync("Token Type: " + authProperties.GetTokenValue("token_type") + "<br>"); 502await response.WriteAsync("expires_at: " + authProperties.GetTokenValue("expires_at") + "<br>");