Commit Graph

617 Commits

Author SHA1 Message Date
Nate Barbettini a6bdb9b1ec Fix typos in code documentation (#1012)
* Fix typos in code documentation

* Add missing detail to code documentation
2018-04-06 08:09:48 -07:00
Tornhoof e80d0b000a Make BufferedReadString public and add doc (#1011) 2018-03-26 16:03:16 -07:00
Chris Ross (ASP.NET) 49b447d626 Merge branch 'release/2.1' into dev 2018-03-23 09:19:06 -07:00
Chris Ross (ASP.NET) 3d9a19d865 Merge branch 'release/2.1' into dev
# Conflicts:
#	build/dependencies.props
#	korebuild-lock.txt
2018-03-23 09:16:55 -07:00
Patrick Westerhoff 72210e4078 Add AuthenticationProperties.Parameters (#1008)
Add a `Parameters` bag to the authentication properties that allow
passing arbitrary parameters to an authentication handler. These values
are not intended for serialization of persistence, only for flowing data
between call sites.

Also make existing `Items` collection helpers protected to allow them to
be reused in subclasses, make string-based helpers public as a public
way to work with the collection, and add helper methods to interact with
the `Parameters` dictionary.
2018-03-23 09:13:02 -07:00
Chris Ross (ASP.NET) e5cffe685b Do not rely on the implicit StringValues to array converter. 2018-03-21 09:42:20 -07:00
Ryan Brandenburg f91db5b794 Set 2.0 baselines 2018-03-20 11:49:29 -07:00
richardhopton f6f89554c9 Fix trimming line if CR not directly before LF (#1006)
If the line contains a CR in any location than directly before the LF it would detect a valid line and then trim 2 characters from the end of the line, losing a "real" character.
2018-03-19 09:09:57 -07:00
John Luo b85ed9d5cd Commas in doc comments 2018-02-22 10:44:59 -08:00
Chris Ross (ASP.NET) d20d47924c Add HostString.MatchesAny #2863 2018-02-13 14:40:14 -08:00
Doug Bunting 7b9da556fb Add `HttpRequestRewindExtensions`
- aspnet/Home#2684
- makes the `BufferingHelper` methods used in MVC and WebHooks `public`
2018-02-06 22:11:06 -08:00
David Fowler 816ecf5cda
Reduce the amount of argument checking by flattening the call graph. (#995) 2018-02-06 10:26:56 -08:00
Robert Miles 672a5f3c76 Allow null value in query string KVP per RFC 3986 (#994)
* Allow null value in query string KVP per RFC 3986

* Tweaks per PR suggestions

* Tweaks per PR suggestions, round 2

* Tweaks per PR suggestions, round 3
2018-02-05 20:25:53 -08:00
Kristian Hellang 450900d14c Added protected ctor to AuthenticationSchemeProvider (#990) 2018-02-05 13:43:55 -08:00
Hossam Barakat 9119433ab7 Add the middleware name to the exception message UseMiddlewareNoInvokeMethod (#993)
Addresses #927
Addresses aspnet/Home#2692
2018-02-01 06:22:08 -08:00
Mikael Mengistu e8d69911fd
Adding Http2 headers to HeaderNames class (#992) 2018-01-31 11:55:43 -08:00
David Fowler 6cd313fcfa
Revert "Change MiddlewareFactory to type activate IMiddleware as a fallback (#988)" (#991)
This reverts commit 44d5bf074f.
2018-01-30 10:28:52 -08:00
Michael Hawkins 9f64c69a2a Disambiguates IFormFile name docs (#935) 2018-01-28 14:27:47 -08:00
David Fowler 44d5bf074f
Change MiddlewareFactory to type activate IMiddleware as a fallback (#988)
- This eases the transition and learning when you discover there's
an interface for middleware.
2018-01-25 13:51:54 -08:00
Chris Ross (ASP.NET) ce69341265 Add ITrackingConsentFeature.CreateConsentCookie 2018-01-05 12:04:50 -08:00
Chris Ross (ASP.NET) 63c2f43ce5 AuthenticationProperties code cleanup 2018-01-02 11:30:45 -08:00
Chris Ross 32bfa03875
Fix comment and exception typos. (#983) 2017-12-28 08:35:04 -08:00
Chris Ross (ASP.NET) ac702f6818 Add the cookie IsEssential flag and feature 2017-12-27 13:28:12 -08:00
lundog 9aaaefbb1b Initialize RequestCookieCollection case insensitive (#981)
* Initialize RequestCookieCollection case insensitive

* Call RequestCookieCollection constructor directly
2017-12-22 11:55:06 -08:00
user1336 db3c3ba589 Ensure HeaderDictionary store is initialized consistently (#979) 2017-12-21 08:50:32 -08:00
Justin Kotalik 150bb3faf4
Add BindingAddress to HttpAbstractions (#977) 2017-12-18 18:40:11 -08:00
Luke Latham 940c71eaf8 Correct spelling in summary (#975) 2017-11-30 13:51:33 -08:00
Chris Ross 476333771c
#955 Print available scheme names in exception message for invalid scheme (#961) 2017-11-16 09:17:57 -08:00
Chris Ross 3e3772eecd
Implement read-only HeaderDictionary (#958) 2017-11-06 20:03:49 -08:00
azechi f287c46bad Fix exception message for AuthenticationScheme (#960) 2017-11-06 18:38:01 -08:00
Chris Ross e2dcbea4ec
#907 Clarify the encoding requirements for Response.Redirect. (#956) 2017-11-03 15:52:59 -07:00
Nate McMaster c0f937239a Pin tool and package versions to make builds more repeatable
Part of aspnet/Universe#575
2017-11-01 09:32:44 -07:00
Jonathan 75a7552360 Add Referer to GetTypedHeaders (#949)
* Add a Referer property

* Add Uri to KnownParsers

* Add property for Origin

* Add Origin

* Encode the URI

From feedback from Tratcher

* Inline the var 'out' declaration

* Remove Origin

Since it does not cleanly map to a Uri object since it can contain multiple values.

* Took back that whitespace

* Reverted

* Add using for UriHelper.Encode
2017-10-12 11:00:23 -07:00
Jonathan 01b4530fa7 Add Content-Security-Policy (#950)
* Add Content-Security-Policy

* Add Content-Security-Policy-Report-Only

* Fix previous edit
2017-10-11 21:30:29 -07:00
Jonathan badaa7393b Add header names for CORS (#951) 2017-10-09 11:58:37 -07:00
Henk Mollema d6a3c3f83e Add helper to register IHttpContextAccessor (#947) 2017-10-02 08:31:12 -07:00
Justin Kotalik b0d91c17f1 Add Strict-Transport-Security header name (#944) 2017-09-29 15:14:46 -07:00
Chris R 321639b0eb Add AuthenticationProperties to AuthenticateResult for failures. 2017-09-27 14:00:55 -07:00
Javier Calvarro Nelson 835ba2218a Update API check baselines to 2.0 2017-09-25 11:41:36 -07:00
Hao Kung bab16971ae Add comment for claims transform 2017-09-21 11:57:31 -07:00
Jonathan 5128efe0e8 Fix HTTP capitalization in comment (#931) 2017-09-12 22:19:52 -07:00
smarts 2b9516703b Update comments to use correct class name. (#937) 2017-09-12 13:53:04 -07:00
Justin Kotalik 1e8a22dae3 NameValueHeaderValue Escaping/Unescaping quoted-strings and helpers (#913) 2017-08-30 14:03:12 -07:00
Nate McMaster e5825641ce Use PackageLineup to manage PackageReference versions 2017-08-29 12:43:13 -07:00
Nate McMaster 9c699f74b0 Use Directory.Build.props/targets 2017-08-29 12:41:50 -07:00
Justin Kotalik e97e6546c2 Add structured syntax suffixes and facets to MediaTypeHeaderValue (#921) 2017-08-29 10:20:56 -07:00
Kiran Challa ce68ec23c0 Using WebEncoders' Base64Url encode/decode functionality 2017-08-24 14:00:49 -07:00
Justin Kotalik 6657f4cf36 Adds MaxAge property to CookieOptions/Builder (#904) 2017-08-22 16:57:04 -07:00
Justin Kotalik 27b0f60f09 ForbidAsync now uses correct Schemes method (#918)
* ForbidAsync now uses correct Schemes method

* comment

* adds tests
2017-08-19 22:09:22 -07:00
Justin Kotalik 594f55947f Keep ResponseCookie options on delete. (#905) 2017-08-10 18:01:30 -07:00