Hi, This isnt strictly a Componentspace question, but it's a requirement so we can use the dynamic config from the database. We are implementing the CustomConfigurationResolver and need to access our SQL Server database from within this method, which resides in the startup.cs class. public override Task<LocalServiceProviderConfiguration> GetLocalServiceProviderConfigurationAsync(string configurationID)
The problem is we can't work out how to access our databse (DBContext) in this method as it's usually injected via DI after being configured in the ConfigureServices method in the same class, but it's not available in startup.cs (where the custom resolver code resides) outside of the ConfigureServices or Configure methods. Once we solve that, our plan is to retrieve the corresponding IdP and SP config information using the configurationId from the database so they can be used during the asp.net core ChallengeResult call for SSO. Thanks for any help in advance.
|