pub enum SubjectTokenType {
AccessToken,
RefreshToken,
IdToken,
Saml2,
Jwt,
Custom(String),
}Expand description
RFC 8693 subject_token_type URNs supported by Salesforce.
The connected app’s OauthTokenExchangeHandler metadata controls
which of these are accepted (isAccessTokenSupported,
isRefreshTokenSupported, isIdTokenSupported, isSaml2Supported,
isJwtSupported). Custom is provided as an escape
hatch for token-type URNs not enumerated here.
Variants§
AccessToken
urn:ietf:params:oauth:token-type:access_token — OAuth 2.0 access token.
RefreshToken
urn:ietf:params:oauth:token-type:refresh_token — OAuth 2.0 refresh token.
IdToken
urn:ietf:params:oauth:token-type:id_token — OpenID Connect ID token.
Saml2
urn:ietf:params:oauth:token-type:saml2 — base64 URL-encoded SAML 2.0 assertion.
Jwt
urn:ietf:params:oauth:token-type:jwt — any token formatted as a JWT.
Custom(String)
Escape hatch for an unrecognized URN.
Implementations§
Trait Implementations§
Source§impl Clone for SubjectTokenType
impl Clone for SubjectTokenType
Source§fn clone(&self) -> SubjectTokenType
fn clone(&self) -> SubjectTokenType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SubjectTokenType
impl Debug for SubjectTokenType
Source§impl PartialEq for SubjectTokenType
impl PartialEq for SubjectTokenType
Source§fn eq(&self, other: &SubjectTokenType) -> bool
fn eq(&self, other: &SubjectTokenType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for SubjectTokenType
impl StructuralPartialEq for SubjectTokenType
Auto Trait Implementations§
impl Freeze for SubjectTokenType
impl RefUnwindSafe for SubjectTokenType
impl Send for SubjectTokenType
impl Sync for SubjectTokenType
impl Unpin for SubjectTokenType
impl UnsafeUnpin for SubjectTokenType
impl UnwindSafe for SubjectTokenType
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