public FeatureController(ICredAuthentication credAuthentication) { _credAuthentication = credAuthentication; //the service is injected by the GL app, the parameters are passed in on the method call _apiUrl = appSettings["okta.ApiUrl"]; _apiToken = appSettings["okta.ApiToken"]; _oktaUserMgmt = new OktaUserMgmt(_apiUrl, _apiToken); _userdomain = appSettings["user.domain"]; }
public MigrationController(ILogger <MigrationController> logger, IConfiguration config, ICredAuthentication ldap) { _logger = logger; _config = config; _credAuthentication = ldap; //the service is injected by the GL app, the parameters are passed in on the method call _ldapServiceModel = new LdapServiceModel(); _ldapServiceModel.ldapServer = _config.GetValue <string>("ldapSettings:ldapServer"); _ldapServiceModel.ldapPort = _config.GetValue <string>("ldapSettings:ldapPort"); _ldapServiceModel.baseDn = _config.GetValue <string>("ldapSettings:baseDn"); }