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

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

Overview

Base class for Simple::OAuth2 generators

Direct Known Subclasses

Authorization, Token

Class Method Summary collapse

Class Method Details

.allowed_grantsArray

Allowed grant types from the Simple::OAuth2 configuration

Returns:

  • (Array)

    allowed grant types



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

def allowed_grants
  config.allowed_grant_types
end

.allowed_typesArray

Allowed response types from the Simple::OAuth2 configuration

Returns:

  • (Array)

    allowed response types



19
20
21
# File 'lib/simple_oauth2/generators/base.rb', line 19

def allowed_types
  config.allowed_response_types
end

.configObject

Short getter for Simple::OAuth2 configuration.



24
25
26
# File 'lib/simple_oauth2/generators/base.rb', line 24

def config
  Simple::OAuth2.config
end