-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
React to Microsoft Entra ID suggestions #14015
Conversation
@Piedone could you please confirm if the menu title changes in Azure or not, so I can react to the change |
It's still called AD in the Azure Portal, because they roll out the rename only starting in August. |
Is there anything missing or shall we merge this PR? |
I'll review it, just give me some time, please. |
...ore.Modules/OrchardCore.Microsoft.Authentication/OrchardCore.Microsoft.Authentication.csproj
Outdated
Show resolved
Hide resolved
...Core.Modules/OrchardCore.Microsoft.Authentication/Views/MicrosoftEntraIDSettings.Edit.cshtml
Outdated
Show resolved
Hide resolved
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.
When you request review the next time, please double-check that you've indeed addressed all my feedback.
new JProperty("name", "MicrosoftEntraID"), | ||
new JProperty("MicrosoftEntraID", JObject.FromObject(settings)) |
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.
This is a breaking change, so we shouldn't do it (and it also needs the same rename in the step). However, I'm not sure the original implementation actually worked, because the name here is "AzureAD". while in AzureADSettingsStep
it's nameof(AzureADSettings)
(i.e. "AzureADSettings"). Let's continue the latter.
Similarly, the rename in AzureADDeploymentStep
is a breaking change as well that we should avoid. However, for me it's not even showing up here, please check:
Also, the comments on AzureADDeploymentStep
and AzureADSettingsStep
are copy-paste leftovers, please fix those too (I know you didn't do them, just housekeeping).
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.
I change the names in the deployment steps before I submit the commit, I will revert the changes
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.
This is missing:
Also, the comments on AzureADDeploymentStep and AzureADSettingsStep are copy-paste leftovers, please fix those too (I know you didn't do them, just housekeeping).
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.
This isn't fully done: #14015 (comment)
@Piedone if you look at the changed files, I revert to what I did in the deployment. Also, I remember your words " Let's continue the latter." for that I didn't touch anything there |
I didn't say "let's continue later" :).
"Latter" -> "AzureADSettings". Let's continue with that name. It's "AzureAD" now. |
I thought it was a typo :) I will change it now and we are ready to merge then |
Maybe we need to do some proper renaming in the upcoming major release |
Yes, if in the Yes I know it's not easy to try everything, but here easy to simulate in a few lines what json data a source can provide and how a step can retrieve them, this is what I did. So, the first solution is to change
To
And then in
The 2nd solution is to only change in
To that, so that we will be able to retrieve the settings from the root of the JObject.
The first solution is what we use most of the time, and I saw that the 2nd solution is already used in Looks like there are the same kind of issues in the other authentication modules, including I think they have been done at the same time by copying from a |
Please look into fixing this for this module, Hisham, and I've opened an issue for the rest: #14051 |
Shall we use JT workaround for now to fix both? |
Yep. |
I go with the second suggestion, anything else or shall I go to fix the related issue? |
I don't think we need anything else here. |
Yes, here it's better to use the 2nd solution, meaning that the settings properties are at the same level than the step |
So, let us approve and merge |
new JProperty("name", "MicrosoftEntraID"), | ||
new JProperty("MicrosoftEntraID", JObject.FromObject(settings)) |
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.
This is missing:
Also, the comments on AzureADDeploymentStep and AzureADSettingsStep are copy-paste leftovers, please fix those too (I know you didn't do them, just housekeeping).
...chardCore.Modules/OrchardCore.Microsoft.Authentication/Deployment/AzureADDeploymentSource.cs
Show resolved
Hide resolved
Which comments? |
You'll see immediately if you open the files ;). |
I just opened the files and closed them so quickly :) What about the comment here? |
Seems you refer to the docs :) |
Maybe I need to revise all the deployments after, seems @agriffard did a lot of copy paste here :) |
The docs on the classes. As I mentioned, the comments, i.e. docs, yes, are outdated there. But I'm not talking about Markdown docs. |
The PR for weird functional test issue, I re-run the failed test hope it pass soon |
Related to #14004