Commit Graph

998 Commits

Author SHA1 Message Date
Tim Hess 0f18ff1b9f Include AuthenticationTicket.Properties in AuthenticationTicket success result handling #1765 (#1767) 2018-05-23 08:25:19 -07:00
ASP.NET CI e031eff146 Update dependencies.props
[auto-updated: dependencies]
2018-05-20 19:46:07 +00:00
Rick Anderson fb80636cb5 Cookie Policy sample essential cookie (#1762) 2018-05-18 17:56:14 -07:00
Chris Ross (ASP.NET) 1aa78a5853 Rewrite JwtBearer token test #640 2018-05-16 15:41:01 -07:00
ASP.NET CI 23b2b00e0e Update dependencies.props
[auto-updated: dependencies]
2018-05-13 14:22:46 -07:00
Ryan Brandenburg a10c3cb23b Upgrade to netcoreapp22 2018-05-08 11:11:18 -07:00
ASP.NET CI 8bd15fcec1 Update dependencies.props
[auto-updated: dependencies]
2018-05-06 12:30:25 -07:00
Alexey Malinin a2cb92b358 Code improvements of JwtBearer module (#1742)
* Use pattern matching to check exception type in JwtBearerHandler

* Use expression body to configure events in JwtBearerHandler
2018-05-01 09:22:27 -07:00
Nate McMaster (automated) 7921fa4c49
Merge branch release/2.1 into dev 2018-04-30 15:53:09 -07:00
Nate McMaster (automated) 3cc514c875
Bump version to 2.1.0-rtm 2018-04-30 14:51:45 -07:00
ASP.NET CI 02ddceac28 Update dependencies.props
[auto-updated: dependencies]
2018-04-29 12:31:25 -07:00
ASP.NET CI db19d87bfa Update dependencies.props
[auto-updated: dependencies]
2018-04-23 12:25:11 -07:00
Nate McMaster 5224d5f4a8
Merge branch release/2.1 into dev 2018-04-20 15:10:01 -07:00
ASP.NET CI f3fc9c7148 Update dependencies.props
[auto-updated: dependencies]
2018-04-19 22:35:33 -07:00
Nate McMaster 5e8f54a55f
Set NETStandardImplicitPackageVersion via dependencies.props 2018-04-19 16:44:34 -07:00
Devin Garner 2e3a1071a8 Correct Twitter OAuth signing code & refactor copy/pasted code. #1695 (#1720) 2018-04-17 09:34:10 -07:00
Ryan Brandenburg 6e0377bad8 Update version number to 2.2.0 2018-04-16 17:02:18 -07:00
Ryan Brandenburg 2e36b28d6a Merge branch 'release/2.1' into dev 2018-04-16 17:02:17 -07:00
Ryan Brandenburg 30493e2fd6 Branching for 2.1.0-rc1 2018-04-16 17:02:13 -07:00
Ryan Brandenburg 0778f5467a Merge remote-tracking branch 'origin/release/2.1' into rybrande/MergeRelease21IntoDev 2018-04-16 15:09:38 -07:00
ASP.NET CI ec5d71d2dc Update dependencies.props
[auto-updated: dependencies]
2018-04-15 14:25:39 -07:00
ASP.NET CI e98a0d243a Update dependencies.props
[auto-updated: dependencies]
2018-04-03 22:41:47 +00:00
Nate McMaster (automated) 0d0f703e3e
Update dependencies.props
[auto-updated: dependencies]
2018-03-28 11:03:00 -07:00
ASP.NET CI bbff105e4d Update dependencies.props
[auto-updated: dependencies]
2018-03-25 15:54:30 -07:00
Chris Ross (ASP.NET) 8654efeb4d Merge branch 'release/2.1' into dev
# Conflicts:
#	build/dependencies.props
2018-03-23 14:57:51 -07:00
Chris Ross (ASP.NET) 8c797639e5 Merge branch 'release/2.1' into dev 2018-03-23 14:56:48 -07:00
Chris Ross (ASP.NET) 405e7bce54 Update dependencies 2018-03-23 14:55:41 -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
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
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
Chris Ross (ASP.NET) 90064ce9df Add ClaimActions for bulk add and remove. #1609 2018-03-21 16:35:37 -07:00
Ryan Brandenburg 46e62b2b67 Set 2.0 baselines 2018-03-21 11:46:17 -07:00
Chris Ross (ASP.NET) 3fae140900 Merge branch 'release/2.1' into dev 2018-03-20 13:45:13 -07:00
Chris Ross (ASP.NET) 81fb221d9e Embed OIDC metadata and mock out the backchannel #1686 2018-03-20 12:42:16 -07:00
Pranav K d24d4fa99f
Merge branch 'release/2.1' into dev 2018-03-16 12:33:52 -07:00
Pranav K be3473914a
Update KoreBuild channel 2018-03-16 12:33:48 -07:00
Pranav K 701c9f083f
Update version prefix to preview3 2018-03-16 11:28:13 -07:00
Pranav K a59103c35c
Merge remote-tracking branch 'origin/release/2.1' into dev 2018-03-16 11:28:13 -07:00
Pranav K 2fecba7451
Branching for 2.1.0-preview2 2018-03-16 11:16:57 -07:00
Hao Kung bee77ebf91
Rename VirtualScheme => PolicyScheme (#1665)
* VirtualScheme => PolicyScheme

* Use SignInHandler base for cookies

* PolicySchemeHandlers throw NotImplemented by default

* Remove redundant interface
2018-03-13 11:09:43 -07:00
Alexander Klingenbeck 4103d47f09 Rename ns Microsoft.AspNetCore.Authroization.Test to Microsoft.AspNetCore.Authorization.Test (#1693) 2018-03-13 10:57:36 -07:00
ASP.NET CI 41bcbd5f0b Update dependencies.props
[auto-updated: dependencies]
2018-03-08 13:14:09 -08:00
Pranav K 4e3e8bb109
Prepend FeatureBranchVersionPrefix if FeatureBranchVersionSuffix is specified 2018-03-06 10:06:01 -08:00
Pranav K f5ea6944f0
Use dotnet-core feed in repos 2018-03-06 10:06:01 -08:00
Chris Ross (ASP.NET) 1df139eb6d Clone tickets for sliding refresh #1607 2018-03-06 08:56:45 -08:00
Nate McMaster a0b704efbd
Merge branch 'release/2.1' into dev 2018-03-02 14:27:55 -08:00
Chris Ross (ASP.NET) 9839799645 Add CookiePolicy logging #1588 2018-03-02 09:53:03 -08:00
Chris Ross (ASP.NET) 21acbf06e8 Update google auth endpoint to v2 #1307 2018-02-28 10:51:13 -08:00
Chris Ross (ASP.NET) cc8acdff57 Update facebook API version to 2.12 #1306 2018-02-28 09:48:07 -08:00