authn_resolver/config.rs
1//! Configuration for the `AuthN` resolver.
2
3use serde::Deserialize;
4
5/// Configuration.
6#[derive(Debug, Clone, Deserialize)]
7#[serde(default, deny_unknown_fields)]
8pub struct AuthNResolverConfig {
9 /// Vendor selector used to pick a plugin implementation.
10 ///
11 /// The resolver queries types-registry for plugin instances matching
12 /// this vendor and selects the one with lowest priority.
13 pub vendor: String,
14}
15
16impl Default for AuthNResolverConfig {
17 fn default() -> Self {
18 Self {
19 vendor: "hyperspot".to_owned(),
20 }
21 }
22}