struct

Authly::Challenge

Inherits JSON::Serializable < Struct < Value < Object

Constructors

generate(client_id : String, ttl : Time::Span = Authly.config.challenge_ttl, username : String | Nil = nil, owner_id : String | Nil = nil, key_id : String | Nil = nil) : Challenge
Source
new(challenge_id : String, challenge : String, client_id : String, expires_at : Time, username : String | Nil = nil, owner_id : String | Nil = nil, key_id : String | Nil = nil, consumed : Bool = false, attempts : Int32 = 0)
Source
new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

attempts
Source
attempts=(attempts : Int32)
Source
challenge
Source
challenge=(challenge : String)
Source
challenge_id
Source
challenge_id=(challenge_id : String)
Source
client_id
Source
client_id=(client_id : String)
Source
consumed=(consumed : Bool)
Source
consumed?
Source
expired?
Source
expires_at
Source
expires_at=(expires_at : Time)
Source
expires_in
Source
identifier
Source
key_id
Source
key_id=(key_id : String | Nil)
Source
owner_id
Source
owner_id=(owner_id : String | Nil)
Source
username
Source
username=(username : String | Nil)
Source