public string GetClientSecretKey(string edFiVersion) { if (!EdFiVersion.IsValid(edFiVersion)) { throw new UnsupportedEdFiVersionException(edFiVersion); } return(GetClientSecretKeyUncheked(edFiVersion)); }
public async Task SaveClientSecret(string edFiVersion, string clientSecret) { if (!EdFiVersion.IsValid(edFiVersion)) { throw new UnsupportedEdFiVersionException(edFiVersion); } var key = GetClientSecretKeyUncheked(edFiVersion); await _keyVaultStore.Set(key, clientSecret); }
public async Task <string> GetClientSecret(string edFiVersion) { if (!EdFiVersion.IsValid(edFiVersion)) { throw new UnsupportedEdFiVersionException(edFiVersion); } var key = GetClientSecretKeyUncheked(edFiVersion); return(await _keyVaultStore.Get(key)); }
public async Task SetDefaultEdFiVersion(string edFiVersion) { ThrowIfStartupModeIsNotHosted(nameof(SetDefaultEdFiVersion)); if (!EdFiVersion.IsValid(edFiVersion)) { throw new UnsupportedEdFiVersionException(edFiVersion); } await _cacheProvider.Set(CacheKeys.EdFiVersion, edFiVersion); }