struct

Authly::Handler::Challenge

Inherits Struct < Value < Object

An RFC 6750 error response: the status, the WWW-Authenticate: Bearer challenge and a JSON body.

Constants

DESCRIPTIONS = {"invalid_request" => "The request is malformed", "invalid_token" => "The access token is invalid, expired or revoked", "insufficient_scope" => "The access token does not grant the required scope"}

Constructors

insufficient_scope(realm : String, scope : String) : Challenge
Source
invalid_request(realm : String) : Challenge
Source
invalid_token(realm : String) : Challenge
Source
missing(realm : String) : Challenge
Source
new(realm : String, status : Int32, error : String | Nil = nil, scope : String | Nil = nil)
Source

Instance methods

error
Source
header
Source
scope
Source
status
Source
write(context : HTTP::Server::Context) : Nil
Source