Struct graph_oauth::legacy::ImplicitCredential
source · pub struct ImplicitCredential { /* private fields */ }
Expand description
The defining characteristic of the implicit grant is that tokens (ID tokens or access tokens) are returned directly from the /authorize endpoint instead of the /token endpoint. This is often used as part of the authorization code flow, in what is called the “hybrid flow” - retrieving the ID token on the /authorize request along with an authorization code. https://learn.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-implicit-grant-flow
Implementations§
source§impl ImplicitCredential
impl ImplicitCredential
pub fn new<U: ToString, I: IntoIterator<Item = U>>( client_id: impl AsRef<str>, scope: I ) -> ImplicitCredential
pub fn builder(client_id: impl AsRef<str>) -> ImplicitCredentialBuilder
pub fn url(&self) -> IdentityResult<Url>
pub fn url_with_host( &self, azure_cloud_instance: &AzureCloudInstance ) -> IdentityResult<Url>
Trait Implementations§
source§impl Clone for ImplicitCredential
impl Clone for ImplicitCredential
source§fn clone(&self) -> ImplicitCredential
fn clone(&self) -> ImplicitCredential
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for ImplicitCredential
impl RefUnwindSafe for ImplicitCredential
impl Send for ImplicitCredential
impl Sync for ImplicitCredential
impl Unpin for ImplicitCredential
impl UnwindSafe for ImplicitCredential
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