public OAuthTesterController(IOptionsMonitor <OAuthClientConfiguration> optionsMonitor, IOAuthFlowsFactory oAuthFlowsFactory) { _optionsMonitor = optionsMonitor; _oAuthFlowsFactory = oAuthFlowsFactory; }
public OAuthController(IOAuthFlowsFactory oAuthFlowsFactory, IOptionsMonitor <OAuthClientConfiguration> optionsMonitor) { _oAuthClientConfiguration = optionsMonitor.GetEx(OAuthConfigurationNames.Github); _oAuthFlows = oAuthFlowsFactory.CreateOAuthFlows(OAuthConfigurationNames.Github); }