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
Sourcenew(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)
Sourcenew(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
attempts
Sourceattempts=(attempts : Int32)
Sourcechallenge
Sourcechallenge=(challenge : String)
Sourcechallenge_id
Sourcechallenge_id=(challenge_id : String)
Sourceclient_id
Sourceclient_id=(client_id : String)
Sourceconsumed=(consumed : Bool)
Sourceconsumed?
Sourceexpired?
Sourceexpires_at
Sourceexpires_at=(expires_at : Time)
Sourceexpires_in
Sourceidentifier
Sourcekey_id
Sourcekey_id=(key_id : String | Nil)
Sourceowner_id
Sourceowner_id=(owner_id : String | Nil)
Sourceusername
Sourceusername=(username : String | Nil)
Source