pub struct EndpointOauthConfigIn {
pub auth_method: Oauth2AuthMethodIn,
pub client_id: String,
pub client_secret: Option<String>,
pub extra_params: Option<HashMap<String, String>>,
pub grant_type: Oauth2GrantTypeIn,
pub jwt_params: Option<Box<ClientSecretJwtParamsIn>>,
pub refresh_token: Option<String>,
pub scopes: Option<Vec<String>>,
pub token_url: String,
}
Fields§
§auth_method: Oauth2AuthMethodIn
§client_id: String
The client ID. Required for all authentication types.
client_secret: Option<String>
Optional client secret. This is only used for clientSecretBasic
and clientSecretPost
. For clientSecretBasic
, the secret will be appended to the Authorization
header. For clientSecretPost
, this will be added to the body in a client_secret
parameter.
extra_params: Option<HashMap<String, String>>
Extra parameters added to the request body as key-value pairs.
grant_type: Oauth2GrantTypeIn
§jwt_params: Option<Box<ClientSecretJwtParamsIn>>
§refresh_token: Option<String>
For refreshToken
grant type
scopes: Option<Vec<String>>
Optional OAuth scopes added to the request body.
token_url: String
The URL of the authorization server.
Implementations§
Source§impl EndpointOauthConfigIn
impl EndpointOauthConfigIn
pub fn new( auth_method: Oauth2AuthMethodIn, client_id: String, grant_type: Oauth2GrantTypeIn, token_url: String, ) -> EndpointOauthConfigIn
Trait Implementations§
Source§impl Clone for EndpointOauthConfigIn
impl Clone for EndpointOauthConfigIn
Source§fn clone(&self) -> EndpointOauthConfigIn
fn clone(&self) -> EndpointOauthConfigIn
Returns a duplicate of the value. Read more
1.0.0 · 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 EndpointOauthConfigIn
impl Debug for EndpointOauthConfigIn
Source§impl Default for EndpointOauthConfigIn
impl Default for EndpointOauthConfigIn
Source§fn default() -> EndpointOauthConfigIn
fn default() -> EndpointOauthConfigIn
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EndpointOauthConfigIn
impl<'de> Deserialize<'de> for EndpointOauthConfigIn
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for EndpointOauthConfigIn
impl PartialEq for EndpointOauthConfigIn
Source§impl Serialize for EndpointOauthConfigIn
impl Serialize for EndpointOauthConfigIn
impl StructuralPartialEq for EndpointOauthConfigIn
Auto Trait Implementations§
impl Freeze for EndpointOauthConfigIn
impl RefUnwindSafe for EndpointOauthConfigIn
impl Send for EndpointOauthConfigIn
impl Sync for EndpointOauthConfigIn
impl Unpin for EndpointOauthConfigIn
impl UnwindSafe for EndpointOauthConfigIn
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