Struct onedrive::GraphTokenObtainer
source · pub struct GraphTokenObtainer {
pub client_id: String,
pub client_secret: String,
pub access_scopes: Vec<String>,
pub auto_open_auth_url: bool,
pub redirect_port: Option<u16>,
pub redirect_endpoint: Option<String>,
}Expand description
Struct that implements TokenObtainer to get a token from Microsoft Graph
Fields§
§client_id: StringThe application ID (client ID) assigned by Microsoft’s Azure app registration portal.
client_secret: StringA client secret (application password), a certificate, or a federated identity credential.
access_scopes: Vec<String>A vector of permissions that the application requires. See here: https://learn.microsoft.com/en-us/azure/active-directory/develop/permissions-consent-overview?WT.mc_id=Portal-Microsoft_AAD_RegisteredApps
auto_open_auth_url: boolIf true, automatically opens the generated authorization URL.
redirect_port: Option<u16>Optional port to use for the local redirect server that gets started up.
redirect_endpoint: Option<String>Optional url path to use for handling incoming redirect requests (e.g. /redirect).
Trait Implementations§
source§impl TokenObtainer for GraphTokenObtainer
impl TokenObtainer for GraphTokenObtainer
Auto Trait Implementations§
impl RefUnwindSafe for GraphTokenObtainer
impl Send for GraphTokenObtainer
impl Sync for GraphTokenObtainer
impl Unpin for GraphTokenObtainer
impl UnwindSafe for GraphTokenObtainer
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