class Grape::OAuth2::Generators::Base
Base
class for Grape::OAuth2
generators. Grape::OAuth2
generators processes the requests and generates responses with Access Token
or Authorization
Code.
Public Class Methods
allowed_grants()
click to toggle source
Allowed grant types from the Grape::OAuth2
configuration.
@return [Array]
allowed grant types
# File lib/grape_oauth2/generators/base.rb, line 14 def allowed_grants config.allowed_grant_types end
config()
click to toggle source
Short getter for Grape::OAuth2
configuration.
# File lib/grape_oauth2/generators/base.rb, line 19 def config Grape::OAuth2.config end