-
Notifications
You must be signed in to change notification settings - Fork 234
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 more tests for EntraId/AzureAd providers #2610
base: main
Are you sure you want to change the base?
Conversation
This PR still needs some discussions with the team as the issue's requirements don't really match DAB's behaviour. These changes can be made, but I doubt that such big changes are intended in this simple PR. Therefore, let's discuss what changes are still required:
|
@microsoft-github-policy-service agree |
/azp run |
ImportantBefore this is merged, we need to make a change. This is my fault. In addition to This would be an additional synonym and what we recommend to users deploying to ACA and ACI. |
Hi @JerryNixon ! I've added some more code to the PR that implements your request. However, the PR is now littered with a few TODOs as your case seems to complicate some matters. I'd like to ask if someone from the team can take a look at it. If my team agree that my TODO's require this PR to become more complex, it might be worth putting the generic Another reason to consider moving the |
src/Core/AuthenticationHelpers/EasyAuthAuthenticationHandler.cs
Outdated
Show resolved
Hide resolved
src/Core/AuthenticationHelpers/EasyAuthAuthenticationBuilderExtensions.cs
Outdated
Show resolved
Hide resolved
src/Core/AuthenticationHelpers/ClientRoleHeaderAuthenticationMiddleware.cs
Outdated
Show resolved
Hide resolved
/azp run |
Got it, lets discuss in line with respect to each TODO
Yes please add the properties in the schema in this PR or in an immediate subsequent one even though they are not being validated.
Lets create a separate PR to validate the config using the schema. It was simply a miss by previous contributors.
Could you please provide edits to the docs here:
Will look into the PR this week. Thanks for your patience. |
src/Service.Tests/Authentication/EasyAuthAuthenticationUnitTests.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: RubenCerna2079 <[email protected]>
/azp run |
Azure Pipelines successfully started running 6 pipeline(s). |
src/Core/AuthenticationHelpers/EasyAuthAuthenticationBuilderExtensions.cs
Outdated
Show resolved
Hide resolved
src/Core/AuthenticationHelpers/ClientRoleHeaderAuthenticationMiddleware.cs
Outdated
Show resolved
Hide resolved
src/Core/AuthenticationHelpers/ClientRoleHeaderAuthenticationMiddleware.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: RubenCerna2079 <[email protected]>
@Aniruddh25 @JerryNixon @RubenCerna2079 This PR has been a wild ride ;)! This PR now contains all the latest requested changes. Now that Some actionable items for @Aniruddh25 / @JerryNixon : In an earlier comment, I discussed the issue of the JSON schema not having a list of auth providers to choose from, which also meant that weren't validated. I also talked about this at the MVP Summit. @Aniruddh25 said they could be added in this PR, but I disagree with this because this PR is currently nice, small and (hopefully) mergeable. I've created #2643 to further discuss this. Let me know if any small changes are still needed. |
Why make this change?
Closes #2407
This issue adds more tests for the
EntraId
authentication provider.EntraId
already seemed to be supported, so no business logic was needed for this change.What is this change?
Several tests have been added.
How was this tested?
Sample Request(s)
Use
EntraId
andAzureAd
providers like before.