[−][src]Struct graph_oauth::oauth::GrantSelector
Implementations
impl GrantSelector<AccessTokenGrant>[src]
pub fn token_flow(self) -> ImplicitGrant[src]
Create a new instance for token flow.
See
Microsoft Token Flow Authorizaiton
Example
let open_id = oauth.build().token_flow();
pub fn code_flow(self) -> AccessTokenGrant[src]
Create a new instance for code flow.
See
Microsoft Code Flow Authorizaiton
Example
let open_id = oauth.build().code_flow();
pub fn implicit_grant(self) -> ImplicitGrant[src]
Create a new instance for the implicit grant.
See
Example
let open_id = oauth.build().implicit_grant();
pub fn authorization_code_grant(self) -> AccessTokenGrant[src]
Create a new instance for authorization code grant.
See
Authorization Code Grant for OAuth 2.0
Example
let open_id = oauth.build().authorization_code_grant();
pub fn open_id_connect(self) -> AccessTokenGrant[src]
Create a new instance for the open id connect grant.
See
Example
let open_id = oauth.build().open_id_connect();
pub fn client_credentials(self) -> AccessTokenGrant[src]
Create a new instance for the open id connect grant.
See
Example
let open_id = oauth.build().client_credentials();
pub fn resource_owner_password_credentials(self) -> AccessTokenGrant[src]
Create a new instance for the resource owner password credentials grant.
See
Microsoft Resource Owner Password Credentials
Example
let open_id = oauth.build().resource_owner_password_credentials();
impl GrantSelector<AsyncAccessTokenGrant>[src]
pub fn token_flow(self) -> ImplicitGrant[src]
Create a new instance for token flow.
See
Microsoft Token Flow Authorizaiton
Example
let open_id = oauth.build().token_flow();
pub fn code_flow(self) -> AsyncAccessTokenGrant[src]
Create a new instance for code flow.
See
Microsoft Code Flow Authorizaiton
Example
let open_id = oauth.build().code_flow();
pub fn implicit_grant(self) -> ImplicitGrant[src]
Create a new instance for the implicit grant.
See
Example
let open_id = oauth.build().implicit_grant();
pub fn authorization_code_grant(self) -> AsyncAccessTokenGrant[src]
Create a new instance for authorization code grant.
See
Authorization Code Grant for OAuth 2.0
Example
let open_id = oauth.build().authorization_code_grant();
pub fn open_id_connect(self) -> AsyncAccessTokenGrant[src]
Create a new instance for the open id connect grant.
See
Example
let open_id = oauth.build().open_id_connect();
pub fn client_credentials(self) -> AsyncAccessTokenGrant[src]
Create a new instance for the open id connect grant.
See
Example
let open_id = oauth.build().client_credentials();
pub fn resource_owner_password_credentials(self) -> AsyncAccessTokenGrant[src]
Create a new instance for the resource owner password credentials grant.
See
Microsoft Resource Owner Password Credentials
Example
let open_id = oauth.build().resource_owner_password_credentials();
Auto Trait Implementations
impl<T> RefUnwindSafe for GrantSelector<T> where
T: RefUnwindSafe, [src]
T: RefUnwindSafe,
impl<T> Send for GrantSelector<T> where
T: Send, [src]
T: Send,
impl<T> Sync for GrantSelector<T> where
T: Sync, [src]
T: Sync,
impl<T> Unpin for GrantSelector<T> where
T: Unpin, [src]
T: Unpin,
impl<T> UnwindSafe for GrantSelector<T> where
T: UnwindSafe, [src]
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,