Class: Arkaan::Authentication::Session

Inherits:
Object
  • Object
show all
Includes:
Mongoid::Document, Mongoid::Timestamps
Defined in:
lib/arkaan/authentication/session.rb

Overview

A session represents the connection of the user on our frontend application. Nobody else than our frontend should have access to the session or it’s content (in particular to the token), instead they shall use OAuth2.0. A session shall ONLY be created by a premium application (only our frontend applications are premium).

Instance Attribute Summary collapse

Instance Attribute Details

#accountArkaan::Account



23
# File 'lib/arkaan/authentication/session.rb', line 23

belongs_to :account, class_name: 'Arkaan::Account', inverse_of: :sessions

#tokenString



15
# File 'lib/arkaan/authentication/session.rb', line 15

field :token, type: String

#websocket_idString



19
# File 'lib/arkaan/authentication/session.rb', line 19

field :websocket_id, type: String, default: ''