[][src]Module oxide_auth::code_grant::resource

Provides the handling for Resource Requests.

Structs

AccessFailure

Gives additional information about the reason for an access failure.

Authenticate

Additional information provided for the WWW-Authenticate header.

Resource

The result will indicate whether the resource access should be allowed or not.

Enums

Error

An error signalling the resource access was not permitted.

ErrorCode

Indicates the reason for access failure.

Input

An input injected by the executor into the state machine.

Output

A request by the statemachine to the executor.

Traits

Endpoint

Required functionality to respond to resource requests.

Request

Required request methods for deciding on the rights to access a protected resource.

Functions

protect

Do needed verification before granting access to the resource