Commit a865eed
authored
Support ASP.NET Core 3.0 (#348)
* Update providers to ASP.NET Core 3.0
Update all providers to ASP.NET Core 3.0, using preview 6.
* Remove KoreBuild
Remove usage of KoreBuild as it is obsolete and no longer supports .NET Core 3.0 after preview 5.
Add code coverage to test project.
* Add shopify provider (#326)
* Add shopify provider
* Revert sln changes
* Apply code review
* Fix second core review
* Fix ChallentAsync param comment
* Fix scope summary
* Done pull request review #3
* Revert whitespace
* Update ShopifyLoopbackRedirectHandler.cs
* Update ShopifyAuthenticationExtensions.cs
* Update ShopifyAuthenticationHandler.cs
* Update ShopifyAuthenticationOptions.cs
* Update ShopifyTests.cs
* Update README.md
* Update README.md
* Update coverlet and ReportGenerator
Update to the latest releases of coverlet and ReportGenerator for code coverage metrics.
* Shopify - Fix TokenEndpoint format (#330)
Fix TokenEndpoint format
* Gitlab (#329)
* Added gitlab oauth
* Fixed some minor typos & restored wildcard include
* Applied suggested changes from code review
* Added missing version var to tests
* Added missing release build config
* Added Gitlab back to solution
* Fix VS auto resolving the references
* Revert weird bundle exclude
* Update GitLab for ASP.NET Core 3.0
Update the GitLab provider to support ASP.NET Core 3.0.
* Update to ASP.NET Core 3.0 preview 7
Update to preview 7 of ASP.NET Core 3.0.
Update NuGet packages to latest versions.
Fix code coverage output path.
Remove premature disposal in the Zalo provider.
* Use latest macOS image
Use the latest macOS image.
* Add UseAuthorization()
Add UseAuthorization() to the README for ASP.NET Core 3.0.
* Update to ASP.NET Core 3.0 preview 8
Update to preview 8 of ASP.NET Core 3.0.
* Update dependencies
Update NuGet packages to their latest versions.
* Use Arcade for build (#335)
* Use Arcade for build
Switch to Arcade to build the project
Addresses #321.
* Update LICENSE
Fix Arcade error from non-compliant license text.
* Add +x to scripts
* Update appveyor.yml
Update packages location.
Update version.
Disable PR publish.
Disabe test discovery.
* Move eng to solution items
Move the eng folder in the solution to be under Solution Items.
* Use newer test SDK
Use the latest stable version of the test SDK.
* Add files for Visual Studio Code
Add assets to build and run tests in Visual Studio Code.
* Generate AppVeyor build numbers
Generate Arcade "official build Ids" in AppVeyor
* Update appveyor.yml
Collect test results and upload to AppVeyor.
* Update to ASP.NET Core 3.0 preview 9
Update to preview 9 of ASP.NET Core 3.0.
* Remove PackageIconUrl
Use PackageIcon instead of PackageIconUrl as described by https://github.com/NuGet/Home/wiki/Packaging-Icon-within-the-nupkg as it is considered obsolete.
* Update .gitignore
Ignore .coverage files from Visual Studio code coverage.
* Merge from dev (#339)
* Add shopify provider (#326)
* Add shopify provider
* Revert sln changes
* Apply code review
* Fix second core review
* Fix ChallentAsync param comment
* Fix scope summary
* Done pull request review #3
* Revert whitespace
* Update ShopifyLoopbackRedirectHandler.cs
* Update ShopifyAuthenticationExtensions.cs
* Update ShopifyAuthenticationHandler.cs
* Update ShopifyAuthenticationOptions.cs
* Update ShopifyTests.cs
* Update README.md
* Update README.md
* Shopify - Fix TokenEndpoint format (#330)
Fix TokenEndpoint format
* Gitlab (#329)
* Added gitlab oauth
* Fixed some minor typos & restored wildcard include
* Applied suggested changes from code review
* Added missing version var to tests
* Added missing release build config
* Added Gitlab back to solution
* Fix VS auto resolving the references
* Revert weird bundle exclude
* incorrect LoginPath
In this startup file, it previously said "login", but in AuthenticationController the route is defined as "signin"
* Add MyGet publish step
Add step to publish packages to MyGet again.
* Change prerelease label
Change the prerelease label to preview 9.
* Fix assembly copyrights
Apply fix to assembly copyright as-per openiddict/openiddict-core#797.
* Update to ASP.NET Core 3.0 RC1
Update to release candidate 1 of ASP.NET Core 3.0.
* Add Sign in with Apple provider (#343)
* Add shopify provider (#326)
* Add shopify provider
* Revert sln changes
* Apply code review
* Fix second core review
* Fix ChallentAsync param comment
* Fix scope summary
* Done pull request review #3
* Revert whitespace
* Update ShopifyLoopbackRedirectHandler.cs
* Update ShopifyAuthenticationExtensions.cs
* Update ShopifyAuthenticationHandler.cs
* Update ShopifyAuthenticationOptions.cs
* Update ShopifyTests.cs
* Update README.md
* Update README.md
* Shopify - Fix TokenEndpoint format (#330)
Fix TokenEndpoint format
* Gitlab (#329)
* Added gitlab oauth
* Fixed some minor typos & restored wildcard include
* Applied suggested changes from code review
* Added missing version var to tests
* Added missing release build config
* Added Gitlab back to solution
* Fix VS auto resolving the references
* Revert weird bundle exclude
* incorrect LoginPath
In this startup file, it previously said "login", but in AuthenticationController the route is defined as "signin"
* Basic Apple provider
Add a very basic Sign In with Apple provider based on currently available information.
* Implement Apple provider
Fully implement the provider for Sign In with Apple based on current available functionality.
* Enable Sign In with Apple
Enable Sign In with Apple in the MVC sample app without hard-coding secrets.
* Update tests
Update the tests for the updated provider implementation.
Fix incorrect test method name.
* Enable token lifetime validation
Enable the validation of token lifetimes.
* Add null annotations
Add [NotNull] attributes to relevant methods.
* Improve exception handling
Pre-validate the ID token has a value.
Change catch clause to improve logging.
* Extend integration tests
Extend the integration tests for additional scenarios such as no validation, invalid tokens and using a configured client secret.
* Move expiry period to options
Move the configured lifetime for generated client secrets to the options class.
* Add ClientSecretExpiresAfter validation
Add validation for the value of ClientSecretExpiresAfter.
* Add tests for options validation
Add unit tests for options validation.
Improve exception type.
Fix incorrect if condition that meant not all values were validated correctly.
* Add unit tests for client secret
Add unit tests for the generated client secret's format.
* Make KeyId required
Make the KeyId option required if GenerateClientSecret is true.
* Fix test
Fix the expiry not being set.
* Fix Linux and macOS secret generation
Work around platform differences between Windows and Linux/macOS by supporting .p12/.pfx certificates for Linux/macOS and using p8 for Windows.
.NET Core 3.0 adds support for .p8 on both platforms.
* Add password option for pfx files
Add an option for specifying a password for PFX files.
Add a test private key that has a password for use on macOS.
* Fix flaky test
Fix flaky test by setting the expiry to 2 seconds to eliminate rounding issues.
* Add UsePrivateKey() method
Add UsePrivateKey() extension method that configures a private key file to use to auto-generate client secrets.
* Bump System.IdentityModel.Tokens.Jwt
Bump System.IdentityModel.Tokens.Jwt to 5.3.0 to ensure that incompatibility with .NET Standard 1.4 doesn't affect consumers.
* Set response_mode to form_post
React to changes Apple have made to the sign-in service, and use form_post as the response mode.
This requires reimplementing HandleRemoteAuthenticateAsync() by using either for Form or Query based on whether it is an HTTP POST.
* Use latest C# version
Fix the build by enabling the latest version of C#.
* Retrieve user details after sign-in
Get the user's name and email address, if available, as claims after signing in with an Apple ID. These details are only available the first time the user signs in; if they are not persisted they cannot currently be obtained again.
* Update branding
Use "Sign in with Apple" instead of "Sign In with Apple".
* Access events via options
Use the same approach as the other OAuth handlers and access the Events property via the Options property.
* Resolve logging TODO
Remove TODO comment.
Check whether Trace logging is enabled before logging the Apple token response.
* Comment out Apple option
Comment out the Apple provider as it causes the application to fail to start if the values aren't set and/or the key file does not exist.
* Update Sign in with Apple provider for ASP.NET Core 3.0
Update the Sign in with Apple provider to support ASP.NET Core 3.0.
Update the .NET Core test SDK version.
Fix-up Startup warnings.
* Add Nextcloud provider (#325)
* Add Nextcloud provider and unit test
* updated according to suggestions
* Change ClaimTypes.Name to Claims.Username
* Update Nextcloud for ASP.NET Core 3.0
Update the Nextcloud provider to support ASP.NET Core 3.0.
* Add missing usings
Add missing usings to request and response in GitLab handler.
* Use LangVersion latest
Stop using preview versions of C# now that C# 8 is the default for the .NET Core 3.0 SDK.
* Update to ASP.NET Core 3.0
Update to ASP.NET Core 3.0 final packages and SDK.
* Remove additional NuGet feeds
Remove extra NuGet feeds not needed now 3.0.0 packages are in NuGet.org.
* Add authorization
Add authorization middleware.1 parent 38a0128 commit a865eed
File tree
286 files changed
+10961
-2046
lines changed- .vscode
- build
- eng
- common
- cross
- android
- arm64
- arm
- arm64
- armel
- tizen
- arm
- x86
- internal
- native
- performance
- post-build
- sdl
- templates
- jobs
- job
- phases
- post-build
- channels
- steps
- samples/Mvc.Client
- src
- AspNet.Security.OAuth.Amazon
- AspNet.Security.OAuth.Apple
- Internal
- AspNet.Security.OAuth.ArcGIS
- AspNet.Security.OAuth.Asana
- AspNet.Security.OAuth.Autodesk
- AspNet.Security.OAuth.Automatic
- AspNet.Security.OAuth.Baidu
- AspNet.Security.OAuth.BattleNet
- AspNet.Security.OAuth.Beam
- AspNet.Security.OAuth.Bitbucket
- AspNet.Security.OAuth.Buffer
- AspNet.Security.OAuth.CiscoSpark
- AspNet.Security.OAuth.DeviantArt
- AspNet.Security.OAuth.Discord
- AspNet.Security.OAuth.Dropbox
- AspNet.Security.OAuth.EVEOnline
- AspNet.Security.OAuth.Fitbit
- AspNet.Security.OAuth.Foursquare
- AspNet.Security.OAuth.GitHub
- AspNet.Security.OAuth.GitLab
- AspNet.Security.OAuth.Gitter
- AspNet.Security.OAuth.Harvest
- AspNet.Security.OAuth.HealthGraph
- AspNet.Security.OAuth.Imgur
- AspNet.Security.OAuth.Instagram
- AspNet.Security.OAuth.LinkedIn
- AspNet.Security.OAuth.MailChimp
- AspNet.Security.OAuth.MailRu
- AspNet.Security.OAuth.Myob
- AspNet.Security.OAuth.Nextcloud
- AspNet.Security.OAuth.Odnoklassniki
- AspNet.Security.OAuth.Onshape
- AspNet.Security.OAuth.Patreon
- AspNet.Security.OAuth.Paypal
- AspNet.Security.OAuth.QQ
- AspNet.Security.OAuth.Reddit
- AspNet.Security.OAuth.Salesforce
- AspNet.Security.OAuth.Shopify
- AspNet.Security.OAuth.Slack
- AspNet.Security.OAuth.SoundCloud
- AspNet.Security.OAuth.Spotify
- AspNet.Security.OAuth.StackExchange
- AspNet.Security.OAuth.Strava
- AspNet.Security.OAuth.Trakt
- AspNet.Security.OAuth.Twitch
- AspNet.Security.OAuth.Untappd
- AspNet.Security.OAuth.Vimeo
- AspNet.Security.OAuth.VisualStudio
- AspNet.Security.OAuth.Vkontakte
- AspNet.Security.OAuth.Weibo
- AspNet.Security.OAuth.Weixin
- AspNet.Security.OAuth.WordPress
- AspNet.Security.OAuth.Yahoo
- AspNet.Security.OAuth.Yammer
- AspNet.Security.OAuth.Yandex
- AspNet.Security.OAuth.Zalo
- test/AspNet.Security.OAuth.Providers.Tests
- Apple
- Infrastructure
- LinkedIn
- Shopify
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
286 files changed
+10961
-2046
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
| 22 | + | |
| 23 | + | |
20 | 24 | | |
21 | 25 | | |
22 | 26 | | |
| |||
29 | 33 | | |
30 | 34 | | |
31 | 35 | | |
| 36 | + | |
32 | 37 | | |
33 | 38 | | |
34 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | 21 | | |
23 | | - | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | 6 | | |
16 | 7 | | |
17 | 8 | | |
| |||
122 | 113 | | |
123 | 114 | | |
124 | 115 | | |
| 116 | + | |
125 | 117 | | |
126 | 118 | | |
127 | 119 | | |
128 | 120 | | |
| 121 | + | |
| 122 | + | |
129 | 123 | | |
130 | | - | |
131 | | - | |
132 | 124 | | |
133 | 125 | | |
134 | 126 | | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | 127 | | |
139 | 128 | | |
140 | 129 | | |
| |||
167 | 156 | | |
168 | 157 | | |
169 | 158 | | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
170 | 172 | | |
171 | 173 | | |
172 | 174 | | |
| |||
471 | 473 | | |
472 | 474 | | |
473 | 475 | | |
| 476 | + | |
| 477 | + | |
474 | 478 | | |
475 | 479 | | |
476 | 480 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
186 | 187 | | |
187 | 188 | | |
188 | 189 | | |
189 | | - | |
| 190 | + | |
190 | 191 | | |
191 | 192 | | |
192 | 193 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
5 | 8 | | |
6 | 9 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
0 commit comments