pub async fn authorization_code(
handler: &mut (dyn Endpoint + Send + Sync),
request: &(dyn Request + Sync),
) -> Result<Pending, Error>
Expand description
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.