Class: Virtuaservices::OAuth::Application

Inherits:
Object
  • Object
show all
Includes:
Mongoid::Document, Mongoid::Timestamps
Defined in:
lib/virtuaservices/oauth/application.rb

Overview

An application is what is referred to in the OAuth2.0 RFC as a client, wanting to access private informations about the user.

Author:

Instance Attribute Summary collapse

Instance Attribute Details

#creatorVirtuaservices::Account



21
# File 'lib/virtuaservices/oauth/application.rb', line 21

belongs_to :creator, class_name: 'Virtuaservices::Account', inverse_of: :applications

#keyString



14
# File 'lib/virtuaservices/oauth/application.rb', line 14

field :key, type: String, default: ->{ SecureRandom.hex }

#nameString



11
# File 'lib/virtuaservices/oauth/application.rb', line 11

field :name, type: String

#premiumBoolean



17
# File 'lib/virtuaservices/oauth/application.rb', line 17

field :premium, type: Boolean, default: false