Exemple #1
0
        public string GetClientSecretKey(string edFiVersion)
        {
            if (!EdFiVersion.IsValid(edFiVersion))
            {
                throw new UnsupportedEdFiVersionException(edFiVersion);
            }

            return(GetClientSecretKeyUncheked(edFiVersion));
        }
Exemple #2
0
        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);
        }
Exemple #3
0
        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);
        }