Commit Graph

18017 Commits

Author SHA1 Message Date
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
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
Pavel Krymets 1686a71046 Return HRESULT 2018-03-22 15:49:18 -07:00
ASP.NET CI eb93153a0d Updating submodule(s)
EntityFrameworkCore => 70e182d66305a3c71b3256a46e53b01194f80a22
SignalR => f1a3775247

[auto-updated: submodules]
2018-03-22 22:32:09 +00:00
Nate McMaster c569d163c4
Filter osx from symbols packages and include npm artifacts in prodcon 2018-03-22 15:20:10 -07:00
Nate McMaster 5aae1f91a8
Include symbols in published output 2018-03-22 15:20:09 -07:00
Nate McMaster e5822232bb
Update to .NET Core 2.0.7-servicing-26322-01 2018-03-22 15:15:52 -07:00
ASP.NET CI 487e6b545c Updating BuildTools from 2.1.0-preview2-15746 to 2.1.0-preview2-15748
[auto-updated: buildtools]
2018-03-22 14:49:08 -07:00
ASP.NET CI 1c7a40dcc0 Updating submodule(s)
AADIntegration => 500279ea98
Identity => 1fd33f62f4
IISIntegration => f1058f8575
Mvc => 8590bb9367
Razor => ac3065a9e1
SignalR => b5c46f35b3

[auto-updated: submodules]
2018-03-22 14:48:59 -07:00
Javier Calvarro Nelson 500279ea98 Add missing source 2018-03-22 14:43:03 -07:00
Javier Calvarro Nelson 9e61d6bd98 Update application parts implementation 2018-03-22 14:31:21 -07:00
ASP.NET CI a240d7568b Updating submodule(s)
Mvc => 12f8e10e1a

[auto-updated: submodules]
2018-03-22 14:27:42 -07:00
ASP.NET CI 1dd5f94de3 Updating submodule(s)
Razor => 48606039e5
SignalR => c5b6be6b55

[auto-updated: submodules]
2018-03-22 13:40:30 -07:00
Javier Calvarro Nelson de86071b2c React to changes in Virtual schemes 2018-03-22 13:39:45 -07:00
Javier Calvarro Nelson 0fbd2bb45e Add Azure AD B2C integration package 2018-03-22 13:29:08 -07:00
Javier Calvarro Nelson af05248042 [Fixes #4] Adds an Azure Active Directory B2C package
* Adds extension methods to configure Azure Active Directory B2C
  authentication for Web applications and APIs.
* Adds all the supporting controllers/pages to support handling UI
  flows.
* Adds a sample using B2C to authenticate in a web application.
2018-03-22 13:22:13 -07:00
Pavel Krymets e2e5a226c2 Better fix 2018-03-22 13:14:20 -07:00
Pavel Krymets f6f5e575fb Test more things 2018-03-22 13:11:29 -07:00
ASP.NET CI c91e204291 Updating BuildTools from 2.1.0-preview3-17000 to 2.1.0-preview3-17001
[auto-updated: buildtools]
2018-03-22 19:22:31 +00:00
Pavel Krymets 205fe9daf1 Do not return 200 for exceptions 2018-03-22 12:21:10 -07:00
Yanbing Shi 631c2cdd3e add SystemNetWebSocketsWebSocketProtocolPackageVersion 2018-03-22 11:51:53 -07:00
Yanbing Shi 0f622ec53d ANCM stress app 2018-03-22 11:48:43 -07:00
ASP.NET CI 2d42042353 Updating BuildTools from 2.1.0-preview3-15746 to 2.1.0-preview3-17000
[auto-updated: buildtools]
2018-03-22 11:40:34 -07:00
ASP.NET CI 551f12e1bd Updating submodule(s)
Templating => d2befa48e7

[auto-updated: submodules]
2018-03-22 11:40:24 -07:00
Javier Calvarro Nelson 7eb13646d5 Add AAD Integration repo 2018-03-22 11:34:11 -07:00
Justin Kotalik f1058f8575
Cleanup ReadAsync calls, make IISHttpContext private (#696) 2018-03-22 11:13:06 -07:00
ASP.NET CI 6ee57067b8 Updating submodule(s)
BrowserLink => c0058a078637c5ce048331da95420080a907907d
IISIntegration => af96c91584
Security => 90064ce9df
Templating => b24e3b2e78

[auto-updated: submodules]
2018-03-22 10:48:57 -07:00
Jass Bagga d2befa48e7
Merge pull request #393 from aspnet/release/2.1
Use applicationUrl instead of ASPNETCORE_URLS (#390)
2018-03-22 10:32:53 -07:00
Jass Bagga b24e3b2e78
Use applicationUrl instead of ASPNETCORE_URLS (#390)
Addresses #328
2018-03-22 10:32:20 -07:00
ASP.NET CI 97cad4c83a Updating submodule(s)
IISIntegration => f4890ac7a2

[auto-updated: submodules]
2018-03-22 10:29:48 -07:00
Pavel Krymets f4890ac7a2
Merge pull request #716 from aspnet/release/2.1
Merge Release/2.1 to dev
2018-03-22 10:23:29 -07:00
Pavel Krymets af96c91584
Add support for running test sites on IIS from VS (#714) 2018-03-22 10:21:59 -07:00
Nate McMaster 6eb4b0ecfb
Prepare the 2.0.7 patch 2018-03-22 10:08:30 -07:00
ASP.NET CI fb8d430fe0 Updating submodule(s)
Security => ce278eba92

[auto-updated: submodules]
2018-03-22 09:51:59 -07:00
Chris Ross (ASP.NET) ce278eba92 Merge branch 'release/2.1' into dev 2018-03-22 09:42:44 -07:00
Chris Ross (ASP.NET) 3d5c9a478d Merge branch 'release/2.1' into dev 2018-03-22 09:42:21 -07:00
ASP.NET CI 65fc1fd9ff Updating submodule(s)
IISIntegration => edcc74be3d

[auto-updated: submodules]
2018-03-22 09:40:26 -07:00
Justin Kotalik edcc74be3d
Remove test parallelization (#712) 2018-03-22 09:36:04 -07:00