-
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
DataProtection_Azure is failing when creating a protector from Configuration file #14744
Comments
Okay, will look at it |
@MikeAlhayek Oh yes, didn't saw this Inside a service initializer OrchardCore/src/OrchardCore.Modules/OrchardCore.DataProtection.Azure/Startup.cs Lines 38 to 56 in cb13fd7
This PR should be reverted and/or find another way, my bad I approved it ;) |
Maybe we can move services.AddDataProtection() out of the initializer and somehow set the blob connection in Initializer? |
Yes somethink like that, I will look at it tomorrow |
I am not sure if this is going to work since this is called at the end. I am calling the data protector from Configuration file (which I believe happens early on). In order for this to be properly configured, we would need to initialize it early on since this is the protection key for the shell. Even when if that works, we would somehow need to configure this from inside the Initializer
In addition to initializing asynchronously, |
I will look at it when I will have time, we will tackle it this week end |
Try something like this
|
@jtkech that sounds like a great solution! I'll test it out tomorrow. It may be a good idea to submit a PR and I'll check it out and test it. |
I have the following configuration file
The line
_dataProtectionProvider.CreateProtector(SendbirdAppOptions.ProtectorName)
is throwing an exception.@jtkech It seems that PR #14687 is causing this issue. Maybe the
services.Initialize
call is called too late (after the Configure options happens). Is there a better idea here than reverting that PR?The text was updated successfully, but these errors were encountered: