Struct oxide_auth::endpoint::RefreshFlow[][src]

pub struct RefreshFlow<E, R> where
    E: Endpoint<R>,
    R: WebRequest
{ /* fields omitted */ }
Expand description

Takes requests from clients to refresh their access tokens.

Implementations

Wrap the endpoint if it supports handling refresh requests.

Also binds the endpoint to the particular WebRequest type through the type system. The endpoint needs to provide (return Some):

  • a Registrar from registrar
  • an Issuer from issuer_mut

Panics

Indirectly execute may panic when this flow is instantiated with an inconsistent endpoint, for details see the documentation of Endpoint and execute. For consistent endpoints, the panic is instead caught as an error here.

Use the checked endpoint to refresh a token.

Panics

When the registrar, authorizer, or issuer returned by the endpoint is suddenly None when previously it was Some(_).

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.