Enum oxide_auth::code_grant::authorization::Output [−][src]
pub enum Output<'machine> {
Bind {
client_id: String,
redirect_uri: Option<ExactUrl>,
},
Extend,
Negotiate {
bound_client: &'machine BoundClient<'static>,
scope: Option<Scope>,
},
Ok {
pre_grant: PreGrant,
state: Option<String>,
extensions: Extensions,
},
Err(Error),
}Expand description
A request by the statemachine to the executor.
Each variant is fulfilled by certain variants of the next inputs as an argument to
Authorization::advance. The output of most states is simply repeated if Input::None is
provided instead.
Variants
Ask registrar to bind the client and checks its redirect_uri
Fields of Bind
Ask for extensions if any
Ask registrar to negociate
Fields of Negotiate
bound_client: &'machine BoundClient<'static>The current bound client
scope: Option<Scope>The scope, if any
State machine is finished, provides parameters to construct a Pending (sync or async
version)
Fields of Ok
Err(Error)The state machine finished in an error.
The error will be repeated on any following input.
Tuple Fields of Err
0: Error