Authly::DeviceCodeData
Inherits JSON::Serializable < Struct < Value < Object
Constructors
new(device_code : String, user_code : String, client_id : String, scope : String, expires_at : Time, interval : Int32 = 5, verified : Bool = false, user_id : Nil | String = nil, last_polled_at : Time | Nil = nil, denied : Bool = false)
Sourcenew(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
client_id
Sourceclient_id=(client_id : String)
Sourcedenied=(denied : Bool)
The owner denied the device; kept until the code expires so the device is answered access_denied (RFC 8628 3.5).
denied?
The owner denied the device; kept until the code expires so the device is answered access_denied (RFC 8628 3.5).
device_code
Sourcedevice_code=(device_code : String)
Sourceexpired?
Sourceexpires_at
Sourceexpires_at=(expires_at : Time)
Sourceinterval
Sourceinterval=(interval : Int32)
Sourcelast_polled_at
When the device last asked for a token; polling faster than interval is answered slow_down.
last_polled_at=(last_polled_at : Time | Nil)
When the device last asked for a token; polling faster than interval is answered slow_down.
scope
Sourcescope=(scope : String)
Sourceuser_code
Sourceuser_code=(user_code : String)
Sourceuser_id
Sourceuser_id=(user_id : String | Nil)
Sourceverified=(verified : Bool)
Sourceverified?
Source