Enum openidconnect::core::CoreAuthErrorResponseType[][src]

pub enum CoreAuthErrorResponseType {
Show 17 variants AccessDenied, AccountSelectionRequired, ConsentRequired, InteractionRequired, InvalidRequest, InvalidRequestObject, InvalidRequestUri, InvalidScope, LoginRequired, RegistrationNotSupported, RequestNotSupported, RequestUriNotSupported, ServerError, TemporarilyUnavailable, UnauthorizedClient, UnsupportedResponseType, Extension(String),
}
Expand description

OpenID Connect Core authentication error response types.

This type represents errors returned in a redirect from the Authorization Endpoint to the client’s redirect URI.

These values are defined across both Section 4.1.2.1 of RFC 6749 and Section 3.1.2.6 of the OpenID Connect Core spec.

Variants

AccessDenied

The resource owner or authorization server denied the request.

AccountSelectionRequired

The End-User is REQUIRED to select a session at the Authorization Server. The End-User MAY be authenticated at the Authorization Server with different associated accounts, but the End-User did not select a session. This error MAY be returned when the prompt parameter value in the Authentication Request is none, but the Authentication Request cannot be completed without displaying a user interface to prompt for a session to use.

ConsentRequired

The Authorization Server requires End-User consent. This error MAY be returned when the prompt parameter value in the Authentication Request is none, but the Authentication Request cannot be completed without displaying a user interface for End-User consent.

InteractionRequired

The Authorization Server requires End-User interaction of some form to proceed. This error MAY be returned when the prompt parameter value in the Authentication Request is none, but the Authentication Request cannot be completed without displaying a user interface for End-User interaction.

InvalidRequest

The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed.

InvalidRequestObject

The request parameter contains an invalid Request Object.

InvalidRequestUri

The request_uri in the Authorization Request returns an error or contains invalid data.

InvalidScope

The requested scope is invalid, unknown, or malformed.

LoginRequired

The Authorization Server requires End-User authentication. This error MAY be returned when the prompt parameter value in the Authentication Request is none, but the Authentication Request cannot be completed without displaying a user interface for End-User authentication.

RegistrationNotSupported

The OpenID Connect Provider does not support use of the registration parameter.

RequestNotSupported

The OpenID Connect Provider does not support use of the request parameter.

RequestUriNotSupported

The OpenID Connect Provider does not support use of the request_uri parameter.

ServerError

The authorization server encountered an unexpected condition that prevented it from fulfilling the request. (This error code is needed because a 500 Internal Server Error HTTP status code cannot be returned to the client via an HTTP redirect.)

TemporarilyUnavailable

The authorization server is currently unable to handle the request due to a temporary overloading or maintenance of the server. (This error code is needed because a 503 Service Unavailable HTTP status code cannot be returned to the client via an HTTP redirect.)

UnauthorizedClient

The client is not authorized to request an authorization code using this method.

UnsupportedResponseType

The authorization server does not support obtaining an authorization code using this method.

Extension(String)

Tuple Fields

0: String

An extension not defined by any of the supported specifications.

Trait Implementations

Performs the conversion.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

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

Compare self to key and return true if they are equal.

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more