public void Validate(ConfigurationOptionsValidator validateConfigurationOptions)
        {
            var required = validateConfigurationOptions?.Environment == Environments.Live;

            ConfigurationException.AssertThumbprint(Thumbprint, $"{nameof(AuthorizationRegistryClientOptions)}.{nameof(Thumbprint)}", required: required);
            ConfigurationException.AssertUri(BaseUri, $"{nameof(AuthorizationRegistryClientOptions)}.{nameof(BaseUri)}");
            ConfigurationException.AssertNotNull(ClientId, $"{nameof(AuthorizationRegistryClientOptions)}.{nameof(ClientId)}");
        }
Exemplo n.º 2
0
 public void Validate(ConfigurationOptionsValidator validateConfigurationOptions)
 {
     if (Enable)
     {
         ConfigurationException.AssertUri(AuthorityUrl, $"{nameof(SchemeOwnerIdentityProviderOptions)}.{nameof(AuthorityUrl)}");
         ConfigurationException.AssertNotNull(Scope, $"{nameof(SchemeOwnerIdentityProviderOptions)}.{nameof(Scope)}");
     }
 }
Exemplo n.º 3
0
 public void Validate(ConfigurationOptionsValidator validateConfigurationOptions)
 {
     ConfigurationException.AssertUri(BaseUri, $"{nameof(SpaOptions)}.{nameof(BaseUri)}");
     ConfigurationException.AssertNotNull(ApplicationName, $"{nameof(SpaOptions)}.{nameof(ApplicationName)}");
     ConfigurationException.AssertNotNull(TwoFactorEnabled, $"{nameof(SpaOptions)}.{nameof(TwoFactorEnabled)}");
     ConfigurationException.AssertNotNull(SpaClientId, $"{nameof(SpaOptions)}.{nameof(SpaClientId)}");
     ConfigurationException.AssertNotNull(SpaClientSecret, $"{nameof(SpaOptions)}.{nameof(SpaClientSecret)}");
     ConfigurationException.AssertNotNull(ApiName, $"{nameof(SpaOptions)}.{nameof(ApiName)}");
     ConfigurationException.AssertNotNull(ApiSecret, $"{nameof(SpaOptions)}.{nameof(ApiSecret)}");
 }
 public void Validate(ConfigurationOptionsValidator validateConfigurationOptions)
 {
     ConfigurationException.AssertNotNull(ClientId, $"{nameof(PartyDetailsOptions)}.{nameof(ClientId)}");
     ConfigurationException.AssertNotNull(Name, $"{nameof(PartyDetailsOptions)}.{nameof(Name)}");
     ConfigurationException.AssertUri(BaseUri, $"{nameof(PartyDetailsOptions)}.{nameof(BaseUri)}");
 }
Exemplo n.º 5
0
 public void Validate(ConfigurationOptionsValidator validateConfigurationOptions)
 {
     ConfigurationException.AssertUri(KeyVaultUri, $"{nameof(KeyVaultOptions)}.{nameof(KeyVaultUri)}");
     ConfigurationException.AssertNotNull(PublicKeySecretName, $"{nameof(KeyVaultOptions)}.{nameof(PublicKeySecretName)}");
     ConfigurationException.AssertNotNull(PrivateKeyName, $"{nameof(KeyVaultOptions)}.{nameof(PrivateKeyName)}");
 }