Struct oxide_auth::code_grant::backend::CodeRef [] [src]

pub struct CodeRef<'a> { /* fields omitted */ }

CodeRef is a thin wrapper around necessary types to execute an authorization code grant.

Methods

impl<'u> CodeRef<'u>
[src]

[src]

Retrieve allowed scope and redirect url from the registrar.

Checks the validity of any given input as the registrar instance communicates the registrated parameters. The registrar can also set or override the requested (default) scope of the client. This will result in a tuple of negotiated parameters which can be used further to authorize the client by the owner or, in case of errors, in an action to be taken. If the client is not registered, the request will otherwise be ignored, if the request has some other syntactical error, the client is contacted at its redirect url with an error response.

[src]

Construct a reference capable of handling authorization code requests.