[][src]Module oxide_auth::code_grant::authorization

Provides the handling for Authorization Code Requests

Structs

ErrorUrl

Encapsulates a redirect to a valid redirect_uri with an error response. The implementation makes it possible to alter the contained error, for example to provide additional optional information. The error type should not be altered by the frontend but the specificalities of this should be enforced by the frontend instead.

Pending

Represents a valid, currently pending authorization request not bound to an owner. The frontend can signal a reponse using this object.

Enums

Error

Defines the correct treatment of the error. Not all errors are signalled to the requesting party, especially when impersonation is possible it is integral for security to resolve the error internally instead of redirecting the user agent to a possibly crafted and malicious target.

Traits

Endpoint

Required functionality to respond to authorization code requests.

Extension

A system of addons provided additional data.

Request

Interface required from a request to determine the handling in the backend.

Functions

authorization_code

Retrieve allowed scope and redirect url from the registrar.