pub struct OidcClientAssertion {
pub audience: Vec<String>,
pub key_source: OidcClientAssertionKeySource,
pub key_algorithm: String,
pub private_key: Option<OidcClientAssertionKey>,
pub extra_headers: HashMap<String, String>,
}
Expand description
OIDCClientAssertion (a.k.a private_key_jwt) is used to send a client_assertion along with an OIDC token request. Reference: https://oauth.net/private-key-jwt/ See also: structs.OIDCClientAssertion
This struct was generated based on the Go types of the official Nomad API client.
Fields§
§audience: Vec<String>
Audience is/are who will be processing the assertion.
Defaults to the parent ACLAuthMethodConfig
’s OIDCDiscoveryURL
key_source: OidcClientAssertionKeySource
KeySource is where to get the private key to sign the JWT. It is the one field that must be set to enable client assertions. Available sources:
- “nomad”: Use current active key in Nomad’s keyring
- “private_key”: Use key material in the
PrivateKey
field - “client_secret”: Use the
OIDCClientSecret
inherited from the parentACLAuthMethodConfig
as an HMAC key
key_algorithm: String
KeyAlgorithm is the key’s algorithm.
Its default values are based on the KeySource
:
- “nomad”: “RS256” (from Nomad’s keyring, must not be changed)
- “private_key”: “RS256” (must be RS256, RS384, or RS512)
- “client_secret”: “HS256” (must be HS256, HS384, or HS512)
private_key: Option<OidcClientAssertionKey>
PrivateKey contains external key material provided by users.
KeySource
must be “private_key” to enable this.
extra_headers: HashMap<String, String>
ExtraHeaders are added to the JWT headers, alongside “kid” and “type”
Setting the “kid” header here is not allowed; use PrivateKey.KeyID
.
Trait Implementations§
Source§impl Clone for OidcClientAssertion
impl Clone for OidcClientAssertion
Source§fn clone(&self) -> OidcClientAssertion
fn clone(&self) -> OidcClientAssertion
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more