59 references to Request
BasicWebSite (1)
BasicAuthenticationHandler.cs (1)
19if (!Request.Headers.ContainsKey("Authorization"))
Identity.DefaultUI.WebSite (3)
Services\ContosoAuthenticationHandler.cs (3)
27var uri = $"{Request.Scheme}://{Request.Host}{Request.PathBase}{Options.RemoteLoginPath}";
Microsoft.AspNetCore.Authentication (11)
AuthenticationHandler.cs (9)
54protected PathString OriginalPath => Context.Features.Get<IAuthenticationFeature>()?.OriginalPath ?? Request.Path; 59protected PathString OriginalPathBase => Context.Features.Get<IAuthenticationFeature>()?.OriginalPathBase ?? Request.PathBase; 106get => Request.Scheme + Uri.SchemeDelimiter + Request.Host + Request.PathBase + Request.Path + Request.QueryString; 197=> Request.Scheme + Uri.SchemeDelimiter + Request.Host + OriginalPathBase + targetPath;
RemoteAuthenticationHandler.cs (2)
69=> Task.FromResult(Options.CallbackPath == Request.Path); 262var correlationCookie = Request.Cookies[cookieName];
Microsoft.AspNetCore.Authentication.Cookies (3)
CookieAuthenticationHandler.cs (3)
433redirectUri = Request.Query[Options.ReturnUrlParameter]; 467returnUrl = OriginalPathBase + OriginalPath + Request.QueryString; 480redirectUri = OriginalPathBase + OriginalPath + Request.QueryString;
Microsoft.AspNetCore.Authentication.JwtBearer (1)
JwtBearerHandler.cs (1)
76string authorization = Request.Headers.Authorization.ToString();
Microsoft.AspNetCore.Authentication.Negotiate (4)
NegotiateHandler.cs (4)
63private bool IsSupportedProtocol => HttpProtocol.IsHttp11(Request.Protocol) || HttpProtocol.IsHttp10(Request.Protocol); 97var authorizationHeader = Request.Headers.Authorization; 307Logger.ProtocolNotSupported(Request.Protocol);
Microsoft.AspNetCore.Authentication.OAuth (2)
OAuthHandler.cs (2)
66var query = Request.Query; 267properties.RedirectUri = OriginalPathBase + OriginalPath + Request.QueryString;
Microsoft.AspNetCore.Authentication.OpenIdConnect (20)
OpenIdConnectHandler.cs (20)
91if (Options.RemoteSignOutPath.HasValue && Options.RemoteSignOutPath == Request.Path) 95else if (Options.SignedOutCallbackPath.HasValue && Options.SignedOutCallbackPath == Request.Path) 108if (HttpMethods.IsGet(Request.Method)) 112message = new OpenIdConnectMessage(Request.Query.Select(pair => new KeyValuePair<string, string[]>(pair.Key, pair.Value.ToArray()))); 117else if (HttpMethods.IsPost(Request.Method) 118&& !string.IsNullOrEmpty(Request.ContentType) 120&& Request.ContentType.StartsWith("application/x-www-form-urlencoded", StringComparison.OrdinalIgnoreCase) 121&& Request.Body.CanRead) 123var form = await Request.ReadFormAsync(Context.RequestAborted); 241properties.RedirectUri = OriginalPathBase + OriginalPath + Request.QueryString; 316var message = new OpenIdConnectMessage(Request.Query.Select(pair => new KeyValuePair<string, string[]>(pair.Key, pair.Value.ToArray()))); 389properties.RedirectUri = OriginalPathBase + OriginalPath + Request.QueryString; 639if (HttpMethods.IsGet(Request.Method)) 643authorizationResponse = new OpenIdConnectMessage(Request.Query.Select(pair => new KeyValuePair<string, string[]>(pair.Key, pair.Value.ToArray()))); 660else if (HttpMethods.IsPost(Request.Method) 661&& !string.IsNullOrEmpty(Request.ContentType) 663&& Request.ContentType.StartsWith("application/x-www-form-urlencoded", StringComparison.OrdinalIgnoreCase) 664&& Request.Body.CanRead) 666var form = await Request.ReadFormAsync(Context.RequestAborted); 1184foreach (var nonceKey in Request.Cookies.Keys)
Microsoft.AspNetCore.Authentication.Twitter (3)
TwitterHandler.cs (3)
60var query = Request.Query; 61var protectedRequestToken = Request.Cookies[Options.StateCookie.Name!]; 168properties.RedirectUri = OriginalPathBase + OriginalPath + Request.QueryString;
Microsoft.AspNetCore.Authentication.WsFederation (10)
WsFederationHandler.cs (10)
70if (Options.RemoteSignOutPath.HasValue && Options.RemoteSignOutPath == Request.Path && HttpMethods.IsGet(Request.Method) 71&& string.Equals(Request.Query[WsFederationConstants.WsFederationParameterNames.Wa], 95properties.RedirectUri = OriginalPathBase + OriginalPath + Request.QueryString; 154if (HttpMethods.IsPost(Request.Method) 155&& !string.IsNullOrEmpty(Request.ContentType) 157&& Request.ContentType.StartsWith("application/x-www-form-urlencoded", StringComparison.OrdinalIgnoreCase) 158&& Request.Body.CanRead) 160var form = await Request.ReadFormAsync(Context.RequestAborted); 474var message = new WsFederationMessage(Request.Query.Select(pair => new KeyValuePair<string, string[]>(pair.Key, pair.Value.ToArray())));
Microsoft.AspNetCore.Tests (1)
WebApplicationTests.cs (1)
2861var username = Request.Query["username"];