pub struct RefreshTokenExtras<'a> {
pub client_assertion_payload: Option<HashMap<String, Value>>,
pub exchange_body: Option<HashMap<String, String>>,
pub dpop: Option<&'a Jwk>,
}
Expand description
§RefreshParams
Parameters for the Client’s refresh_async
request
Fields§
§client_assertion_payload: Option<HashMap<String, Value>>
Additional claims to be added in the client assertion payload
exchange_body: Option<HashMap<String, String>>
Additional body params to sent with the exchange request
dpop: Option<&'a Jwk>
When provided the client will send a DPoP Proof JWT.
Implementations§
Source§impl<'a> RefreshTokenExtras<'a>
impl<'a> RefreshTokenExtras<'a>
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: &'a Jwk) -> Self
pub fn set_dpop_key(self, dpop: &'a Jwk) -> Self
Sets dpop key
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for RefreshTokenExtras<'a>
impl<'a> RefUnwindSafe for RefreshTokenExtras<'a>
impl<'a> Send for RefreshTokenExtras<'a>
impl<'a> Sync for RefreshTokenExtras<'a>
impl<'a> Unpin for RefreshTokenExtras<'a>
impl<'a> UnwindSafe for RefreshTokenExtras<'a>
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