Commit Graph

619 Commits

Author SHA1 Message Date
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 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 68ba94218a IsNullOrWhiteSpace => IsNullOrEmpty 2017-07-18 09:08:49 -07:00
Justin Kotalik ab0185a0b8 Adds null checks to UriHelper and fixes typo 2017-07-17 12:23:01 -07:00
Justin Kotalik 3202387d3f Fixes typo 2017-07-13 10:37:33 -07:00
Hao Kung 7403418d2b Clean up doc comments 2017-07-10 09:21:56 -07:00
Kévin Chalet 0f7c123081 Fix AuthenticationOptions.DefaultScheme's invalid XML summary 2017-07-10 09:19:48 -07:00
Hao Kung d894584254 Add DefaultScheme, remove single fallback (#891) 2017-07-07 10:47:54 -07:00
Hao Kung a79aea3bf3 Tweak null guard 2017-07-05 14:39:27 -07:00
Hao Kung d632c6a1a1 Merge branch 'haok/null' into dev 2017-07-05 14:32:17 -07:00
Hao Kung 98eb31194c Guard against null 2017-07-05 13:33:39 -07:00
Chris R 85402d4bd6 Add CancellationToken to ISession Load/CommitAsync 2017-07-05 09:05:01 -07:00
Nate McMaster 6d858dfeb2 Make CookieBuilder.Build(HttpContext) non-virtual 2017-06-30 12:13:31 -07:00
Nate McMaster 199b0fa212 Require CookieBuilder.Name to be a not null or empty 2017-06-30 09:20:13 -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
Chris Ross 163836fe1f #800 Re-enable API check (#878) 2017-06-28 10:16:54 -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
Hao Kung b059bcc426 Obsolete AuthenticationManager (#866) 2017-06-12 11:41:27 -07:00
Pranav K a78b194a84 Remove usage of TaskCache 2017-06-08 13:46:05 -07:00
David Fowler b686298133 Don't throw for OnStarting or OnCompleted calls. (#864) 2017-06-08 08:53:03 -10:00
David Fowler 9dedc98094 Deprecate the IAuthenticationHandler property (#863)
* Deprecate the IAuthenticationHandler property
2017-06-07 07:04:48 -10:00
Stephen Halter 2176af7edd Add IHttpMaxRequestBodySizeFeature.IsReadOnly (#858) 2017-06-06 15:27:13 -07:00
Hao Kung 300d69e644 Remove ConfigureDefaultOptions 2017-06-05 09:57:57 -07:00
Stephen Halter 9698f539f0 Add IHttpMaxRequestBodySizeFeature (#852) 2017-06-02 12:46:36 -07:00
Hao Kung a55b818a07 Bind AuthenticationOptions to config + PathString type converter (#851) 2017-06-01 15:43:40 -07:00
Doug Bunting 5b9e129abb React to breaking change latest API Check detects
- see PR aspnet/BuildTools#259 and issue aspnet/BuildTools#146
2017-05-26 09:51:56 -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 9313a02aa8 Remove duplication of parsing helper 2017-05-18 11:49:03 -07:00
John Luo 07470d41b1 Ignore empty header values #722 2017-05-17 12:45:56 -07:00
user1336 dfd938e4f7 Fixed � in summary (#838) 2017-05-16 12:42:12 -07:00
cdavid 043f8fda61 Fix typo (delegate) in documentation (#830) 2017-05-10 15:02:53 -07:00
Kristian Hellang f5107596a5 Add Id to ConnectionInfo (#828) 2017-05-10 14:54:05 -07:00
Pavel Krymets 412e4de2a5 Remove unnecessary package references (#835) 2017-05-10 12:10:19 -07:00
Kristian Hellang d1d9bceff5 #833 Change non-standard header name 'ContentMD5' to 'Content-MD5' 2017-05-08 13:37:00 -07:00
John Luo 9168442704 Migration 2017-05-05 14:59:10 -07:00
Smit Patel 73e44417c5 Update API Check related files
React to aspnet/BuildTools#238
2017-04-25 08:18:41 -07:00
Hao Kung 3085f016e4 Fix GetToken() 2017-04-24 11:58:12 -07:00
David Fowler 5472763fc2 Added feature to control http body behavior (#821)
* Added feature to control http body behavior
- Added a flag to allow synchronous IO
2017-04-22 02:52:40 -07:00
Hao Kung 4566cf9fdb Add DisplayName to scheme 2017-04-20 12:42:12 -07:00
Hao Kung d508c027ba Add GetToken overload to HttpContext as well 2017-04-17 16:41:22 -07:00
Hao Kung 4b4b375909 Add GetToken overload using default scheme 2017-04-14 17:37:05 -07:00
Hao Kung ef9ff35370 Remove unneeded AuthenticateContext 2017-04-14 17:19:25 -07:00
Hao Kung f9e19ed522 DefaultAuthentication => DefaultAuthenticate 2017-04-14 14:42:10 -07:00
Jonathan Channon f2f643ad15 Updated XML documentation for HttpResponse.Body (#816) 2017-04-13 09:57:35 -07:00
Hao Kung f6cf5293a0 Add challenge/forbid overloads for MVC 2017-04-12 16:03:35 -07:00
John Luo 0da88e0dda Avoid double escaping in PathString 2017-04-06 13:29:06 -07:00
Hao Kung 13925be91e Initial Auth 2.0 checkin 2017-03-31 11:56:20 -07:00
John Luo 2bdbbbf41d UseMiddleware resolves InvokeAsync in addition to Invoke 2017-03-27 11:28:09 -07:00
Pranav K b3b846c27e Remove net451 as a cross-compile target 2017-03-24 11:46:13 -07:00
John Luo 49daa416ba Use StringComparer.Ordinal 2017-03-22 14:45:46 -07:00
Doug Bunting c9f12a23f8 Disable API Check in projects with untracked breaking changes 2017-03-22 08:33:55 -07:00
Derek Gray d89f66f150 Use a CopyOnWriteDictionary in ApplicationBuilder so branches can set their own properties
Fix #783
2017-03-21 14:31:26 -05:00
Nate McMaster 73d58b7a13 Unify dependency versions to one file 2017-03-15 13:54:28 -07:00
kchanlee 1b02cd2baf Implement `OwinEnvironment` `IEnumerable.GetEnumerator()` (#789) 2017-03-13 07:54:57 -07:00
Justin Van Patten fc3af1ecfe Remove explicit static constructors
Explicit static cctors cause the C# compiler to not mark types as
beforefieldinit, which means the JIT will add checks to each static
method and instance constructors of the type to make sure that the
static constructor was previously called. This can be avoided by
removing explicit static constructors and initializing static fields
inline.
2017-03-13 07:40:03 -07:00
John Luo a1f4928ed5 Clean up Header qvalue parsing 2017-03-06 14:31:14 -08:00
Yves57 7440d5d29c Remove allocations and improve Header Quality Values parsing performance 2017-03-06 14:31:13 -08:00
John Luo 15adff9433 Only format non-negative int64 #760 2017-02-28 14:47:08 -08:00
Nate McMaster b9bba9cbb1
Downgrade to stable packages 2017-02-14 16:15:30 -08:00
David Fowler 945b4e63de Added support for middleware activation via IMiddlewareFactory (#773)
* Added support for middleware activation via IMiddlewareFactory
- IMiddlewareFactory and IMiddleware are new extensiblity points for
activating and authoring middleware. Under the covers, middleware is still
very much just a function. This just provides a nice way to get a per request
activated middleware instance that is created and released via the IMiddlewareFactory.
The caveats are that middleware needs to be registered in the container (by default)
and that not possible to explicitly pass arguments directly via UseMiddleware.
- Added tests
2017-02-13 18:53:10 -08:00
Brian Chavez 6e01e642cb Fixed typo in HttpContext.User XML doc. (#771) 2017-02-08 20:00:08 -08:00
Chris R 96f33b27d4 Migrate from xproj to csproj 2017-02-03 15:37:51 -08:00
Daniel Roth 2703835352 Fix doc comment typo 2017-02-01 06:36:45 -08:00
John Luo 3289afe007 Add check for index advance during parsing 2017-01-31 11:03:20 -08:00
Chris R 779115b1ad #407 Add ContentLength to IHeaderDictionary 2017-01-24 15:14:46 -08:00
john b7d2f8c905 separate GetEncodedUrl and GetEncodedPathAndQuery 2017-01-17 11:37:25 -08:00
john 6ac2452231 update xml doc 2017-01-17 11:37:25 -08:00
john 51f6415ea1 let UriHelper.GetEncodedUrl can get relative url 2017-01-17 11:37:25 -08:00
Chris R 622d112372 #723 Make HttpContextAccessor static AsyncLocal 2017-01-09 14:49:35 -08:00
Ben Adams 3b25acd4ad ContentType.IsNullOrEmpty 2017-01-09 13:38:18 -08:00
John Luo 3ea2f36449 Fix wrong status code 2017-01-06 15:46:00 -08:00
John Luo 33dd1d965f Add all status codes in IANA list and update reason phrases 2017-01-06 13:51:27 -08:00
John Luo 7d20ae2156 Add more status codes and reason phrases 2017-01-05 16:37:16 -08:00
John Luo b34bfdd92d Add 101 status code 2017-01-03 09:55:32 -08:00
Pranav K 991fbb08bc Updating to 4.4 CoreFx packages 2016-12-14 14:47:29 -08:00
Andrius Bentkus a12de2cfd9 Small typo fix 2016-12-09 14:17:47 -08:00
John Luo d50a24145d Add functionalities to HeaderUtilities
- Add allocation free parsing of int32, int64
- Improve performance of converting int64 to string
- Add parsing of seconds from header values
- Add check for existence of cache directives
- Expose CacheControlHeaderValue constants
2016-12-08 17:43:25 -08:00
Kiran Challa aa158f5d25 Modified Base64UrlTextEncoder to reduce string allocations. 2016-11-16 13:43:56 -08:00
Pranav K 4fbb0b01fc Updating versions to 1.2.0-* 2016-11-09 14:17:55 -08:00
jacalvar db677639c3 Created public API baselines 2016-11-04 16:31:24 -07:00
Kiran Challa 4dcde8a329 Added Base64UrlTextEncoder utility from Security repo 2016-11-01 15:31:39 -07:00
Ben Adams 4569653504 Don't allocate for ResponseCookiesFeature 2016-10-07 10:01:42 -07:00
Kristian Hellang 063d6eca0f Added custom RFC 1123 DateTimeFormatter to improve allocation profile (#716) 2016-10-05 12:19:15 -07:00
Pranav K 874dcebbcb Updating partner package versions 2016-09-28 11:50:48 -07:00
Ben Adams 067eb9c6f8 Make FeatureReferences<T>.Fetch inlineable (#704) 2016-09-28 11:35:04 -07:00
Mikael Mengistu 35cde79e46 Renamed HttpMethod class to HttpMethods to avoid conflicts 2016-09-27 14:26:36 -07:00
Mikael Mengistu 626332c5db Adding HTTP method constants 2016-09-26 23:09:08 -07:00
Pavel Krymets 18f08fdb2f Use TaskCache class from Microsoft.Extensions.TaskCache.Sources (#705)
Instead of Task.FromResult(0)
2016-09-07 10:40:13 -07:00
Kiran Challa 30a4b09d9f Fix CookieOptions.HttpOnly doc comment 2016-09-01 10:18:39 -07:00
John Luo e4afd782e8 Add strong and weak ETag comparisons 2016-08-30 14:15:16 -07:00