How to power AzureAD settings via configuration? #8432
-
I can't seem to identify the correct With my information looking like this... {
"AzureADSettings": {
"DisplayName": <name>,
"AppId": <appId>,
"TenantId": <tenantId>,
"CallbackPath": <path>
}
} I've tried the following based on the docs: {
"OrchardCore": {
"AzureADSettings": <info>
}
}
{
"OrchardCore": {
"Properties": {
"AzureADSettings": <info>
}
}
}
{
"OrchardCore": {
"Default": {
"AzureADSettings": <info>
}
}
}
{
"OrchardCore": {
"Default": {
"Properties": {
"AzureADSettings": <info>
}
}
}
} Is there something I'm missing? Nothing I put in is overriding the values I entered in the GUI. And I can't clear out the GUI without it giving me validation errors. Am I just doing the config wrong, or should I open a bug report? Edit: Also tried doing it by replacing |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yes, you would need the
But looking at the code, the related code only configures the options from the site settings, so set under the admin UI. So, you would need some code that configures the related options by using |
Beta Was this translation helpful? Give feedback.
Yes, you would need the
OrchardCore
section, as usualy we use ourIShellConfiguration
that is tenant aware and looks under this section, and you would also need a section whose name is the module name with underscores, hereBut looking at the code, the related code only configures the options from the site settings, so set under the admin UI.
So, you would need some code that configures the related options by using
IShellConfiguration
, this in a module startup that runs after, so that depends onOrchardCore.Microsoft.Authentication
in its manifest, or by overriding in the startup theOrder
prop with an higher value, the same can be done from the app b…