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
Sourceinvalid_request(realm : String) : Challenge
Sourceinvalid_token(realm : String) : Challenge
Sourcemissing(realm : String) : Challenge
Sourcenew(realm : String, status : Int32, error : String | Nil = nil, scope : String | Nil = nil)
SourceInstance methods
error
Sourceheader
Sourcescope
Sourcestatus
Sourcewrite(context : HTTP::Server::Context) : Nil
Source