pub struct DeviceAuthorizationExtras {
pub exchange_body: Option<HashMap<String, String>>,
pub client_assertion_payload: Option<HashMap<String, Value>>,
pub dpop: Option<Jwk>,
}
Expand description
§DeviceAuthorizationExtras
Additional parameters for Device Authorization Request
Fields§
§exchange_body: Option<HashMap<String, String>>
Extra request body properties to be sent to the AS during code exchange.
client_assertion_payload: Option<HashMap<String, Value>>
Extra client assertion payload parameters to be sent as part of a client JWT assertion. This is only used when the client’s token_endpoint_auth_method is either client_secret_jwt or private_key_jwt
dpop: Option<Jwk>
When provided the client will send a DPoP Proof JWT.
Implementations§
Source§impl DeviceAuthorizationExtras
impl DeviceAuthorizationExtras
Sourcepub fn add_client_assertion_claim(
self,
key: impl Into<String>,
value: Value,
) -> Self
pub fn add_client_assertion_claim( self, key: impl Into<String>, value: Value, ) -> Self
Add extra claims to the client assertion payload
Sourcepub fn add_exchange_body_param(
self,
key: impl Into<String>,
value: impl Into<String>,
) -> Self
pub fn add_exchange_body_param( self, key: impl Into<String>, value: impl Into<String>, ) -> Self
Add extra params to the exchange body
Sourcepub fn set_dpop_key(self, dpop: Jwk) -> Self
pub fn set_dpop_key(self, dpop: Jwk) -> Self
Sets dpop key
Trait Implementations§
Source§impl Debug for DeviceAuthorizationExtras
impl Debug for DeviceAuthorizationExtras
Source§impl Default for DeviceAuthorizationExtras
impl Default for DeviceAuthorizationExtras
Source§fn default() -> DeviceAuthorizationExtras
fn default() -> DeviceAuthorizationExtras
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DeviceAuthorizationExtras
impl RefUnwindSafe for DeviceAuthorizationExtras
impl Send for DeviceAuthorizationExtras
impl Sync for DeviceAuthorizationExtras
impl Unpin for DeviceAuthorizationExtras
impl UnwindSafe for DeviceAuthorizationExtras
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more