Boruta.Oauth.Error (Boruta core v1.2.0) View Source

Boruta OAuth errors

Intended to follow OAuth 2.0 errors. Additionnal errors are provided as purpose.

Link to this section Summary

Link to this section Types

Specs

t() :: %Boruta.Oauth.Error{
  error:
    :invalid_request
    | :invalid_client
    | :invalid_scope
    | :invalid_code
    | :invalid_resource_owner
    | :unknown_error,
  error_description: String.t(),
  format: :query | :fragment | nil,
  redirect_uri: String.t() | nil,
  status: :internal_server_error | :bad_request | :unauthorized
}

Link to this section Functions

Specs

redirect_to_url(error :: t()) :: url :: String.t()
Link to this function

with_format(error, arg2)

View Source

Specs

with_format(
  error :: t(),
  request :: Boruta.Oauth.CodeRequest.t() | Boruta.Oauth.TokenRequest.t()
) :: t()