Struct oxide_auth::code_grant::frontend::GrantFlow
[−]
[src]
pub struct GrantFlow<'a> { /* fields omitted */ }
All relevant methods for granting access token from authorization codes.
Methods
impl<'a> GrantFlow<'a>
[src]
fn new(
registrar: &'a Registrar,
authorizer: &'a mut Authorizer,
issuer: &'a mut Issuer
) -> Self
[src]
registrar: &'a Registrar,
authorizer: &'a mut Authorizer,
issuer: &'a mut Issuer
) -> Self
Initiate an access token flow.
fn with_extension(self, extension: &'a AccessTokenExtension) -> Self
[src]
Add an extension to access token handling.
fn handle<Req>(self, request: &mut Req) -> Result<Req::Response, Req::Error> where
Req: WebRequest,
[src]
Req: WebRequest,
Construct a response containing the access token or an error message.