pub struct TokenRequest {
pub grant_type: String,
pub code: String,
pub redirect_uri: String,
pub client_id: String,
pub state: String,
pub scope: String,
pub subject_token: String,
pub subject_token_type: String,
pub expires_in: i64,
}Expand description
TokenRequest models RFC 6749 token endpoint parameters and RFC 8693 token exchange inputs.
Native message type for gestalt.provider.v1.TokenRequest.
Fields§
§grant_type: Stringgrant_type is “authorization_code” or “urn:ietf:params:oauth:grant-type:token-exchange”.
The grant_type field.
code: StringThe code field.
redirect_uri: StringThe redirect_uri field.
client_id: StringThe client_id field.
state: Stringstate correlates authorization-code exchanges with Authorize.
The state field.
scope: Stringscope is the requested scope for issued tokens.
The scope field.
subject_token: Stringsubject_token is the bearer token being exchanged per RFC 8693.
The subject_token field.
subject_token_type: Stringsubject_token_type is the RFC 8693 token type for subject_token.
The subject_token_type field.
expires_in: i64expires_in is a Gestalt request-side extension for the desired access-token lifetime in seconds. The provider MAY clamp or default it; expires_in in TokenResponse remains authoritative per RFC 6749 §5.1. 0 means use the grant default.
The expires_in field.
Trait Implementations§
Source§impl Clone for TokenRequest
impl Clone for TokenRequest
Source§fn clone(&self) -> TokenRequest
fn clone(&self) -> TokenRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TokenRequest
impl Debug for TokenRequest
Source§impl Default for TokenRequest
impl Default for TokenRequest
Source§fn default() -> TokenRequest
fn default() -> TokenRequest
Source§impl<'de> Deserialize<'de> for TokenRequest
impl<'de> Deserialize<'de> for TokenRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for TokenRequest
impl PartialEq for TokenRequest
Source§impl Serialize for TokenRequest
impl Serialize for TokenRequest
impl StructuralPartialEq for TokenRequest
Auto Trait Implementations§
impl Freeze for TokenRequest
impl RefUnwindSafe for TokenRequest
impl Send for TokenRequest
impl Sync for TokenRequest
impl Unpin for TokenRequest
impl UnsafeUnpin for TokenRequest
impl UnwindSafe for TokenRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request