-
Notifications
You must be signed in to change notification settings - Fork 541
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add SuperOffice provider #417
Conversation
No longer use JetBrains.Annotations attributes.
src/AspNet.Security.OAuth.SuperOffice/AspNet.Security.OAuth.SuperOffice.csproj
Outdated
Show resolved
Hide resolved
src/AspNet.Security.OAuth.SuperOffice/SuperOfficeAuthenticationConfiguration.cs
Outdated
Show resolved
Hide resolved
src/AspNet.Security.OAuth.SuperOffice/SuperOfficeAuthenticationConfiguration.cs
Outdated
Show resolved
Hide resolved
src/AspNet.Security.OAuth.SuperOffice/Implementation/DefaultSuperOfficeConfigurationManager.cs
Outdated
Show resolved
Hide resolved
src/AspNet.Security.OAuth.SuperOffice/SuperOfficeAuthenticationHandler.cs
Outdated
Show resolved
Hide resolved
src/AspNet.Security.OAuth.SuperOffice/SuperOfficeAuthenticationInvalidEnvironmentException.cs
Outdated
Show resolved
Hide resolved
src/AspNet.Security.OAuth.SuperOffice/SuperOfficeAuthenticationOptions.cs
Outdated
Show resolved
Hide resolved
src/AspNet.Security.OAuth.SuperOffice/SuperOfficeAuthenticationOptions.cs
Outdated
Show resolved
Hide resolved
test/AspNet.Security.OAuth.Providers.Tests/AspNet.Security.OAuth.Providers.Tests.csproj
Outdated
Show resolved
Hide resolved
…perOfficeConfigurationManager.cs Co-authored-by: Martin Costello <martin@martincostello.com>
…nConfiguration.cs Co-authored-by: Martin Costello <martin@martincostello.com>
…nConstants.cs Spelling correction. Co-authored-by: Martin Costello <martin@martincostello.com>
Co-authored-by: Martin Costello <martin@martincostello.com>
Co-authored-by: Martin Costello <martin@martincostello.com>
Co-authored-by: Martin Costello <martin@martincostello.com>
Co-authored-by: Martin Costello <martin@martincostello.com>
Co-authored-by: Martin Costello <martin@martincostello.com>
Co-authored-by: Martin Costello <martin@martincostello.com>
This reverts commit 8ccf405.
Updates project content based on PR feedback.
Updated comment based on PR feedback.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Martin,
Thanks for all the comments and suggestions. I believe I have either corrected everything or commented accordingly and am awaiting any further comments.
Best regards!
src/AspNet.Security.OAuth.SuperOffice/SuperOfficeAuthenticationConfigurationManager.cs
Outdated
Show resolved
Hide resolved
src/AspNet.Security.OAuth.SuperOffice/SuperOfficeAuthenticationEnvironment.cs
Show resolved
Hide resolved
src/AspNet.Security.OAuth.SuperOffice/SuperOfficeAuthenticationHandler.cs
Outdated
Show resolved
Hide resolved
src/AspNet.Security.OAuth.SuperOffice/SuperOfficeAuthenticationHandler.cs
Outdated
Show resolved
Hide resolved
src/AspNet.Security.OAuth.SuperOffice/SuperOfficeAuthenticationHandler.cs
Outdated
Show resolved
Hide resolved
src/AspNet.Security.OAuth.SuperOffice/Implementation/DefaultSuperOfficeConfigurationManager.cs
Outdated
Show resolved
Hide resolved
src/AspNet.Security.OAuth.SuperOffice/SuperOfficeAuthenticationConfiguration.cs
Outdated
Show resolved
Hide resolved
src/AspNet.Security.OAuth.SuperOffice/SuperOfficeAuthenticationConfiguration.cs
Outdated
Show resolved
Hide resolved
src/AspNet.Security.OAuth.SuperOffice/AspNet.Security.OAuth.SuperOffice.csproj
Outdated
Show resolved
Hide resolved
src/AspNet.Security.OAuth.SuperOffice/SuperOfficeAuthenticationConfiguration.cs
Outdated
Show resolved
Hide resolved
Prevents duplicate claims with signin/signout/signin scenario.
Co-authored-by: Martin Costello <martin@martincostello.com>
Hey @AnthonyYates! Thanks for your contribution 👏 I took a brief look and wouah, it will be a lot of code to maintain (like the Apple provider) 😭 |
Hard-coded JWKS URI instead of utilizing open-id configuration to determine jwks URL.
The sample application, using my provider, works just fine with System.IdentityModel.Tokens.Jwt from version 5.4.0, it's just the tests fail when calling Options.ConfigurationManager.GetConfigurationAsync(Context.RequestAborted); . Bumping it to 5.6.0 makes my local tests pass, but appveyor and travis-ci seem to have issues with it. It causes the Apple test to fail. Going to put the props to 5.4.0... maybe it's just my local environment that has issues... |
Are you correctly rebased onto dev? It might be that your branch doesn't have the fix integrated from #439. As I get this in the GitHub UI, this would suggest to me that it's not been rebased appropriately: As we squash merge big PRs anyway, there's nothing to lose by squashing this PR down into one commit locally based on the current dev branch, and then force pushing. |
Maybe not? When I visited this page earlier today I discovered there were two conflicts. So I fixed them here on Github and committed them. That's what I started to convert the rest of my solution to the new additions such as Directory.Packages.props. I see I have both commits from #439 Tempted to save what I have and start this whole PR from scratch - clean slate. |
@martincostello , I think I got the conflict fixed. Can you verify that from your side? Also, it seems you have made some build/testing changes I'm not familiar with, and do not know how that is meant to impact my PR. I updated the IdentityModel packages to 5.6.0, and all tests are passing. I did have to alter one Apple test, but only specify the complete namespace for an expected exception. Unsure why the type wasn't resolving correctly since the namespace was declared at the top. Any advice the automated build error message "The project file could not be loaded. Data at the root level is invalid."? |
If you run |
@martincostello , thanks for the tip(s)! Unfortunately running local build.cmd doesn't shed any light on compilation errors in the PR. |
Ah yes, sorry, you need to add the |
@martincostello should we tweak the build workflow to always upload the xUnit results even if the tests didn't pass? |
Can do. The old one used to, but if the new one doesn’t it must’ve got accidentally lost in the migration to GH Actions. |
Based on this announcement, maybe we should just use |
@martincostello If you can make the AppleTests succeed with 5.5.0, so be it! |
Looks like something is different in 5.5.0 that disrupts the timing/sequencing in some way (caching?), so that configuration options associated with previous tests are being leftover or something. I'll look into it when I have the time to do so. Otherwise, either you can look into it and fix it if you have the time, or otherwise downgrade to 5.4.0 if you can get the SuperOffice package to work with that version. |
I've found the problem. I'll push up a fix some time later today. TL;DR - a fix similar to #439 needs to be done elsewhere in the code. |
Fixes are now in |
OK, great! Didn't have time today to get into it... Will update things now. |
Excellent @martincostello! Seems everything is good to go now. Appreciate your efforts and work on this PR, can't thank you enough. |
Merged, thanks for your contribution. |
I’ll look at prepping the 3.1.2 release to ship this to NuGet.org when I get some time tomorrow, probably in the evening. In the meantime you can consume the prerelease version from our MyGet feed 🙂 |
Add SuperOffice provider and unit tests.
Update README.md