pub struct AuthConfigCreateParams {
pub toolkit: String,
pub auth_config: AuthConfigData,
}Expand description
Parameters for creating an authentication configuration
Auth configs define how users authenticate with external services. They can use Composio’s managed auth or custom OAuth apps.
§Example
use composio_sdk::models::{AuthConfigCreateParams, AuthConfigData, AuthScheme};
use serde_json::json;
let params = AuthConfigCreateParams {
toolkit: "github".to_string(),
auth_config: AuthConfigData {
auth_type: AuthScheme::Oauth2,
credentials: json!({
"client_id": "your_client_id",
"client_secret": "your_client_secret",
"scopes": ["repo", "user"]
}),
restrict_to_following_tools: None,
},
};Fields§
§toolkit: StringToolkit slug (e.g., “github”, “gmail”)
auth_config: AuthConfigDataAuthentication configuration data
Trait Implementations§
Source§impl Clone for AuthConfigCreateParams
impl Clone for AuthConfigCreateParams
Source§fn clone(&self) -> AuthConfigCreateParams
fn clone(&self) -> AuthConfigCreateParams
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 AuthConfigCreateParams
impl Debug for AuthConfigCreateParams
Auto Trait Implementations§
impl Freeze for AuthConfigCreateParams
impl RefUnwindSafe for AuthConfigCreateParams
impl Send for AuthConfigCreateParams
impl Sync for AuthConfigCreateParams
impl Unpin for AuthConfigCreateParams
impl UnsafeUnpin for AuthConfigCreateParams
impl UnwindSafe for AuthConfigCreateParams
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