Class: Simple::OAuth2::Generators::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/simple_oauth2/generators/base.rb

Overview

Base Generators class

Direct Known Subclasses

Token

Class Method Summary collapse

Class Method Details

.allowed_grantsObject


7
8
9
# File 'lib/simple_oauth2/generators/base.rb', line 7

def allowed_grants
  config.allowed_grant_types
end

.configObject

Short getter for Simple::OAuth2 configuration.


12
13
14
# File 'lib/simple_oauth2/generators/base.rb', line 12

def config
  Simple::OAuth2.config
end