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
Added flexible subdomain support for UserInfo endpoint. Updated docs … #739
Added flexible subdomain support for UserInfo endpoint. Updated docs … #739
Conversation
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.
Could you add another test that covers the case where the webapi_url
claim is used?
I also wonder if we're missing some code coverage here, as I'm surprised the change isn't causing any tests to fail as the webapi_url
claim is required yet there's no test changes and they're still all passing.
It also kind of feels to me that for this change to be backwards compatible, if the webapi_url
claim isn't found, it should just automatically fall back to the previous behaviour, rather than throw.
src/AspNet.Security.OAuth.SuperOffice/SuperOfficeAuthenticationHandler.cs
Outdated
Show resolved
Hide resolved
src/AspNet.Security.OAuth.SuperOffice/SuperOfficeAuthenticationHandler.cs
Outdated
Show resolved
Hide resolved
…nHandler.cs Co-authored-by: Martin Costello <martin@martincostello.com>
Regarding the |
Yes, that's exactly correct. I added an exception if that claim doesn't get returned from the ProcessIdTokenAndGetContactIdentifierAsync method, but this should never happen. But if we every really do make that mistake, at least the exception message would signal just exactly what we did (or didn't do) to upset all of our partners. |
Hi! Any particular reason why this hasn't been merged yet? Seems to have been flags for past milestones, but still just a PR. Any update is appreciate. |
At first it was an oversight, but now the I'll try and sort this out at some point this week. Sorry for the delay. |
Sorry, but I've had to revert this change as the unit tests are broken by it. Unfortunately this wasn't spotted before merging due to dotnet/arcade#11589 not causing the builds to report themselves as failed. Please submit a new PR to re-apply this change including the appropriate changes to the unit tests so they continue to pass (please also run the tests locally when developing, they would have surfaced this issue before you even opened the pull request). Once submitted, I'll then look at re-merging and porting to a branch to release a version for .NET 6 and publishing the 6.0.15 and 7.0.1 releases. Apologies for the inconvenience. |
Hopefully dotnet/arcade#11869 will be eventually merged, but in the meantime, should we include the same fix in our local copy of Arcade? (if so, we'll need to remember not to undo this change when we update Arcade... 😢) |
Sounds like a good idea 👍 |
…link.
This PR enabled backwards compatibility with current and very near future changes with how the SuperOffice provider resolves UserInfo endpoint data.
This PR also updates README link to the docs.