Commit Graph

321 Commits

Author SHA1 Message Date
Ryan Brandenburg 1ad03de00c Upgrade to netcoreapp22 2018-05-08 10:50:50 -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) d20d47924c Add HostString.MatchesAny #2863 2018-02-13 14:40:14 -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
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
Ryan Brandenburg 2326783a04 Have definitive values for TheoryData 2018-01-25 14:44: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
Justin Kotalik 150bb3faf4
Add BindingAddress to HttpAbstractions (#977) 2017-12-18 18:40:11 -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
Pranav K 231f3a44b1 Update samples and tests to target netcoreapp2.1 2017-11-13 15:13:10 -08:00
Chris Ross 3e3772eecd
Implement read-only HeaderDictionary (#958) 2017-11-06 20:03:49 -08: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
Nate McMaster 8dc80c54ad Minor test code changes to resolve xUnit2013 build error 2017-10-05 17:13:26 -07:00
Henk Mollema d6a3c3f83e Add helper to register IHttpContextAccessor (#947) 2017-10-02 08:31:12 -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
Nate McMaster 5b58a6a71d Upgrade to xunit 2.3.0-beta4 2017-08-22 16:29:13 -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
Justin Kotalik 5ec8a7134e Adds FormFeature quoted boundary test 2017-08-08 21:09:39 -07:00
Justin Kotalik 057fc816fa Refactor to HttpRequest/Response Streams 2017-07-27 15:46:13 -07:00
Justin Kotalik a8270a4901 Removes quotes from names in ContentDispositionHeaderValue 2017-07-27 12:30:04 -07:00
Justin Kotalik b41d8656d5 Adds new date string in HttpRuleParser 2017-07-18 13:34:32 -07:00
Justin Kotalik ab0185a0b8 Adds null checks to UriHelper and fixes typo 2017-07-17 12:23:01 -07:00
Cesar Blum Silveira 8d4e04cfb4 Fix duplicate test warnings. 2017-07-10 16:43:44 -07:00
Hao Kung d894584254 Add DefaultScheme, remove single fallback (#891) 2017-07-07 10:47:54 -07:00
Chris R 85402d4bd6 Add CancellationToken to ISession Load/CommitAsync 2017-07-05 09:05:01 -07:00
Hao Kung 271faf11bb Refactor IAuthenticationHandler/Result 2017-06-29 16:25:24 -07:00
Nate McMaster f9e0439ef1 Add CookieBuilder 2017-06-29 15:55:01 -07:00
David Fowler 9bf94d3667 Remove unused parameter in ctor of HttpContextFactory (#881)
- We removed the use of the ObjectPoolProvider in 1.x, this change
just removes it from the ctor.
2017-06-29 11:44:46 -07:00
Nate McMaster 64c6e11ce4 Change HttpResponseStreamWriter.DefaultBufferSize to 16K and remove it from public API surface 2017-06-27 17:31:54 -07:00
Hao Kung 12f89f66a6 Improve PathString <-> string logic 2017-06-20 10:49:17 -07:00
Hao Kung df5c6730f7 Add new default schemes + tests (#870) 2017-06-14 12:57:45 -07:00
Pranav K a78b194a84 Remove usage of TaskCache 2017-06-08 13:46:05 -07:00
Hao Kung 300d69e644 Remove ConfigureDefaultOptions 2017-06-05 09:57:57 -07:00
Hao Kung a55b818a07 Bind AuthenticationOptions to config + PathString type converter (#851) 2017-06-01 15:43:40 -07:00
Hao Kung b1f92fb6bc Forbid + obsolete context.Authentication 2017-05-25 18:26:36 -07:00
Chris R 2ce2d8b6c5 #758 Convert the header parsers to use StringSegment 2017-05-22 15:14:02 -07:00
John Luo e8123db21e Add SameSite attribute to SetCookie header 2017-05-22 14:42:05 -07:00
John Luo 6e87b0f5eb Target netstandard2.0 TFM 2017-05-18 14:38:26 -07:00
John Luo 07470d41b1 Ignore empty header values #722 2017-05-17 12:45:56 -07:00
Nate McMaster bf0b0e283d Upgrade test framework versions and fix test issues 2017-05-15 15:25:02 -07:00
John Luo 9168442704 Migration 2017-05-05 14:59:10 -07:00
Hao Kung 3085f016e4 Fix GetToken() 2017-04-24 11:58:12 -07:00