Commit Graph

27752 Commits

Author SHA1 Message Date
Pranav K 56501cb8a0 Cleanup ApplicationPartFactory 2018-03-23 09:35:55 -07:00
Nate McMaster c9526b21a0
Merge branch 'release/2.1' into dev 2018-03-23 09:24:25 -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
Nate McMaster d91857e33d
Merge branch 'dev' into namc/merge/2.1 2018-03-23 09:00:40 -07:00
Pavel Krymets 79b038afb4 Revert "Merge branch 'dev' into release/2.1"
This reverts commit 88d40dacf9, reversing
changes made to ed801f0e88.
2018-03-23 08:35:53 -07:00
ASP.NET CI 3486906b2e Updating submodule(s)
HttpClientFactory => b39334e8114cf927102b2e1fe10372ebda532076

[auto-updated: submodules]
2018-03-23 08:29:33 -07:00
David Fowler 290f18ac76 Merged release/2.1 2018-03-23 00:06:32 -07:00
David Fowler 967b0dd0a4 Fixed dependencies 2018-03-22 23:39:48 -07:00
ASP.NET CI ec6b13fd48 Updating submodule(s)
IISIntegration => 326a168eb0

[auto-updated: submodules]
2018-03-22 23:01:14 -07:00
David Fowler ce2d175f19
Reacting to Kestrel package rename (#988)
* Reacting to Kestrel package rename
- Update Kestrel
- Updated SignalR
2018-03-22 22:51:46 -07:00
John Luo 71e44433cf Merge branch 'release/2.1' into dev 2018-03-22 22:49:27 -07:00
John Luo 326a168eb0 Revert version to preview2 2018-03-22 22:48:33 -07:00
David Fowler 2e63e5afe3
The rename games part 1 of many (#1696)
- React to rename of EndPoint to ConnectionHandler
- Rename UseSockets to UseConnections
- Rename MapEndPoint to MapConnectionHandler
- Rename HttpSocketOptions to HttpConnectionOptions
2018-03-22 22:35:55 -07:00
David Fowler af636fc8d4 Upgraded deps 2018-03-22 21:56:53 -07:00
David Fowler 0753f4b4f4 Merged release/2.1 2018-03-22 21:56:29 -07:00
David Fowler abdcb47b8f
Renames from API review (#2413)
* Renames from API review
- Rename Microsoft.AspNetCore.Protocols.Abstractions to Microsoft.AspNetCore.Connections.Abstractions.
- Renamed IConnectionHandler to IConnectionDispatcher (and related properties and types)
- Added ConnectionHandler and UseConnectionHandler extension method to Connections.Abstractions.
-  Use ActivatorUtilties to create the ConnectionHandler
2018-03-22 21:38:14 -07:00
ASP.NET CI 69a003e99f Updating submodule(s)
SignalR => 7479f92303

[auto-updated: submodules]
2018-03-23 04:34:00 +00:00
ASP.NET CI f0520bf048 Updating submodule(s)
SignalR => d367bdc9aa

[auto-updated: submodules]
2018-03-23 04:31:27 +00:00
James Newton-King 7479f92303
Merge branch 'release/2.1' into dev 2018-03-23 17:28:25 +13:00
James Newton-King d367bdc9aa
Remove message content from JS client logging (#1694) 2018-03-23 17:24:51 +13:00
ASP.NET CI 80021913ac Updating submodule(s)
AADIntegration => 8f42ce8492

[auto-updated: submodules]
2018-03-22 20:17:51 -07:00
Javier Calvarro Nelson 8f42ce8492 Application parts cleanups 2018-03-22 20:13:10 -07:00
Ajay Bhargav Baaskaran 77200410d6 Updated Razor views 2018-03-22 19:17:31 -07:00
ASP.NET CI ab6a3859e9 Updating submodule(s)
Razor => 2b33a4a043

[auto-updated: submodules]
2018-03-22 19:14:50 -07:00
Ryan Nowak 2b33a4a043 Merge branch 'release/2.1' into dev 2018-03-22 18:57:42 -07:00
ASP.NET CI 71e15349f4 Updating submodule(s)
Razor => 881fb49f73

[auto-updated: submodules]
2018-03-22 18:48:16 -07:00
Ryan Nowak 881fb49f73 Merge branch 'rel/vs15.7' into release/2.1 2018-03-22 18:36:32 -07:00
ASP.NET CI 1d9ec50c57 Updating submodule(s)
EntityFrameworkCore => 28479da1f8986a88fc8a067ceab1b9ea45afb637
Razor => cb3d797f46

[auto-updated: submodules]
2018-03-22 18:24:10 -07:00
Patrick Westerhoff 06c93669d6 Allow overwriting parameters on challenge requests
Add a way to overwrite query arguments that are passed as part of the
challenge request to the external authentication provider in OAuth-based
authentication providers, including OpenID Connect.

This uses the new `AuthenticationProperties.Parameters` collection to
pass parameters to the authentication handler which will then look for
special items within that property bag, overwriting previously
configured values within the authentication options.

This can be used for example to overwrite the OAuth scopes that are
requested from an authentication provider, or to explicitly trigger a
reauthentication by requiring a login prompt with OpenID Connect. By
being able to specify this on individual challenge requests (using
`HttpContext.ChallengeAsync`), this is independent from the global
scheme configuration.

Custom ~ChallengeProperties types, e.g. `OAuthChallengeProperties` for
OAuth-based authentication providers, provide assistance in setting the
challenge request parameters but are not required to make the handlers
use the overwritten values.

- Adjust authentication handlers to respect the custom parameters, and
  add ~ChallengeProperties types.
- Introduce `OAuthHandler.FormatScope(IEnumerable<string>)` to format a
  custom set of scopes. Subclasses requiring a different scope format
  should override this method instead of the parameterless overload.
  Overriding just `FormatScope()` will prevent handlers from supporting
  overwriting the OAuth `scope` in a challenge request.
- Refactor GoogleHandler to support parameterization through both the
  `Parameters` and the `Items` collection (former is preferred) to keep
  compatibility with the old behavior.
- Add an OpenIdConnect sample to overwrite the prompt argument in a
  challenge request.
- Add extensive tests.
2018-03-23 02:09:05 +01:00
ASP.NET CI 087d181fc8 Updating submodule(s)
EntityFrameworkCore => e67ec978a783cf25a30bed162b02446910033d6b
IISIntegration => 88d40dacf9
Razor => 954a62c075
Templating => 4acda9dd9b

[auto-updated: submodules]
2018-03-22 17:57:35 -07:00
Patrick Westerhoff d24fddcf59 Clean up tests
- Make Facebook test server asynchronous to avoid having to
  block for the result.
- Clean up some formatting.
2018-03-23 01:33:50 +01:00
ASP.NET CI 0bc4ae2b97 Updating submodule(s)
IISIntegration => 2f44ab1744
SignalR => fd54ec2c4f
Templating => c8f8d722f3

[auto-updated: submodules]
2018-03-22 17:12:14 -07:00
Pranav K cb3d797f46
Merge pull request #2212 from aspnet/release/2.1
Remove EnableDefaultCompiledViewAssemblyLoadBehavior and add a switch…
2018-03-22 17:10:12 -07:00
Pranav K 954a62c075 Remove EnableDefaultCompiledViewAssemblyLoadBehavior and add a switch to disable generating application part factory attribute 2018-03-22 17:09:53 -07:00
Jass Bagga c8f8d722f3
Merge pull request #398 from aspnet/release/2.1
Set userBrowserLink to false for VS host file (#395)
2018-03-22 17:04:28 -07:00
Jass Bagga 4acda9dd9b
Set userBrowserLink to false for VS host file (#395)
Addresses #394
2018-03-22 17:04:09 -07:00
Pavel Krymets 2f44ab1744
Merge pull request #722 from aspnet/release/2.1
Merge Release/2.1 into dev
2018-03-22 16:50:11 -07:00
ASP.NET CI 865476eaaf Updating submodule(s)
IISIntegration => ed801f0e88
SignalR => a47e1051e8

[auto-updated: submodules]
2018-03-22 16:47:56 -07:00
Pavel Krymets 88d40dacf9
Merge branch 'dev' into release/2.1 2018-03-22 16:47:41 -07:00
Pavel Krymets ed801f0e88 Do not return 200 for exceptions 2018-03-22 16:43:11 -07:00
Pavel Krymets 9f76dfa31f
Merge pull request #719 from aspnet/pakrym/fix-error-code
Do not return 200 for exceptions
2018-03-22 16:23:11 -07:00
Nate McMaster 77bf03c9ac
Merge branch 'release/2.1' into dev 2018-03-22 16:11:19 -07:00
ASP.NET CI e5b3dff633 Updating submodule(s)
EntityFrameworkCore => 89add5906f87db3ee81e3f25fa8446b10b9e3741
SignalR => 8572774ca4

[auto-updated: submodules]
2018-03-22 16:01:10 -07:00
BrennanConroy fd54ec2c4f Merge remote-tracking branch 'origin/release/2.1' into dev 2018-03-22 15:57:47 -07:00
BrennanConroy a47e1051e8
Add protocol version to handshake (#1666) 2018-03-22 15:54:35 -07:00
Pavel Krymets 1686a71046 Return HRESULT 2018-03-22 15:49:18 -07:00
BrennanConroy 6d642ea5ce
Move Typescript client folder (#1692) 2018-03-22 15:47:08 -07:00
ASP.NET CI eb93153a0d Updating submodule(s)
EntityFrameworkCore => 70e182d66305a3c71b3256a46e53b01194f80a22
SignalR => f1a3775247

[auto-updated: submodules]
2018-03-22 22:32:09 +00:00