class

Session

Inherits Ktistec::Model::Common < Ktistec::Model < Reference < Object

Client session.

Constructors

new(_account account : Account)

Allocates a new session for an account.

Source

Class methods

clean_up_stale_sessions
Source
find_by_jwt?(jwt)
Source
invalidate_for(account : Account)

Removes every session associated with an account.

Source

Instance methods

_association_account
Source
_association_oauth_access_token
Source
_belongs_to_setter_for_account(account_ : Account, update_associations = true) : Account
Source
_belongs_to_setter_for_oauth_access_token(oauth_access_token_ : OAuth2::Provider::AccessToken, update_associations = true) : OAuth2::Provider::AccessToken
Source
account(include_deleted : Bool = false, include_undone : Bool = false) : Account
Source
account=(account_ : Account) : Account
Source
account?(include_deleted : Bool = false, include_undone : Bool = false) : Account | Nil
Source
account_id
Source
account_id=(account_id : Int64 | Nil)
Source
body
Source
body=(body)
Source
body_json
Source
body_json=(body_json : String)
Source
csrf_token

Returns the CSRF token for this session.

Source
delete(key)
Source
generate_jwt
Source
oauth_access_token(include_deleted : Bool = false, include_undone : Bool = false) : OAuth2::Provider::AccessToken
Source
oauth_access_token=(oauth_access_token_ : OAuth2::Provider::AccessToken) : OAuth2::Provider::AccessToken
Source
oauth_access_token?(include_deleted : Bool = false, include_undone : Bool = false) : OAuth2::Provider::AccessToken | Nil
Source
oauth_access_token_id
Source
oauth_access_token_id=(oauth_access_token_id : Int64 | Nil)
Source
session_key
Source
session_key=(session_key : String)
Source
string(key, value, *, expires_in = nil)
Source
string(key)
Source
string?(key)
Source