public Auth0CodeClient(IApplicationSettingsRepository settings) { if (settings == null) { throw new ArgumentNullException(nameof(settings)); } _settings = settings; _client = new Auth0Client(_settings.GetStringValue("auth0:domain"), _settings.GetStringValue("auth0:clientid")); }
public TestScenario(string scenarioCode, string description) { if (scenarioCode == null) { throw new ArgumentNullException(nameof(scenarioCode)); } if (description == null) { throw new ArgumentNullException(nameof(description)); } ScenarioCode = scenarioCode; Description = description; Logger = new ConsoleLogWriter(); var administratorUser = _applicationSettingsRepository.GetStringValue("administratorUser"); var administratorPassword = _applicationSettingsRepository.GetStringValue("administratorPassword"); Administrator = CreateSession("Administrator", false, administratorUser, administratorPassword); Anonymous = CreateSession("Anonymous", false); }
protected OAuthRefreshAuthenticationClient(IApplicationSettingsRepository settings, ILogger logger) : base(settings, logger) { _clientId = settings.GetStringValue("ClientId"); _clientSecret = settings.GetStringValue("ClientSecret"); _serviceUri = settings.GetUrl("AuthorisationServiceUrl"); }