1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::collections::HashMap;

use josekit::jwk::Jwk;
use serde_json::Value;

/// # GrantExtras
/// Parameters for customizing Grant request
#[derive(Debug, Default, Clone)]
pub struct GrantExtras {
    /// Additional claims to be added in the client assertion payload
    pub client_assertion_payload: Option<HashMap<String, Value>>,
    /// Specific endpoint auth method to use
    pub endpoint_auth_method: Option<String>,
    /// Private key belonging to the client for Dynamic Proof of Posession
    pub dpop: Option<Jwk>,
}