-
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
Azure AD settings (possibly others) can't actually be configured from the configuration provider #13064
Comments
@hishamco can you take a look at this issue and verify, please? |
Unfortunately I don't have an Azure account, I had one from the old days, but I'm not sure if it's still active |
I will check if it's still valid .. |
Thank you! While having access to an AD is nice, it's not strictly necessary for troubleshooting this. |
(possibly others) I can check the email settings if that's a case. Is the issue occurs when we have both configuration & database settings? Or is there a certain scenario? |
E-mail settings I happen to know work. The issue is that as far as I see, there's nothing that would make |
Is this something you'll look into in the foreseeable future, @hishamco, or do you need help? |
If someone from your side has access to AAD it would be better, meanwhile I will check a new bug reported in localization |
You don't need AAD access for this. The only thing you need to check is whether after the fix (or rather, after implementing the logic necessary to actually load settings from the provider) is whether |
@Piedone seems there was a lack on the docs, when we add builder.Services
.AddOrchardCms()
.AddSetupFeatures("OrchardCore.AutoSetup")
.ConfigureAzureADSettings(); you can able to get the configuration from I just spent an hour or less experiments reading the configuration from admin area as well as the configuration methods introduces in #12033 I will continue checking the other AUTH providers as well to make it sure that everything is working fine Correct me if I miss some of your reproduced steps |
So you're saying it matters whether it's called on builder.Services
.AddOrchardCms(orchardCoreBuilder =>
{
orchardCoreBuilder
.AllowMiniProfilerOnAdmin()
.AddSetupFeatures("OrchardCore.AutoSetup")
.ConfigureAzureADSettings();
}); |
What I mean is whenever you call it via |
Not really. In both cases it's a method call on |
Just checked for In fact here it is a little more complex, there is a
So this is the above aspnetcore options that would need to be post configured from values coming from the configuration, and by looking what the config helper Also take care about the commented obsoletes warnings. |
You 're right @jtkech I saw this yesterday, same thing for other social AUTH providers |
Describe the bug
To Reproduce
ConfigureAzureADSettings()
as instructed in the docs.This was added in #12033. The reason nothing happens is there is actually no
IOptions
or anything referencingAzureADSettings
, it always comes from site settings viaAzureADService
.Expected behavior
The Azure AD settings partially or fully can be provided by configuration providers like the appsettings file.
Note that other such extension added in #12033 should be checked as well to see if a similar commission exists.
The text was updated successfully, but these errors were encountered: