Module: Devise::Oauth2Providable

Defined in:
lib/devise_oauth2_providable.rb,
lib/devise/oauth2_providable/engine.rb,
lib/devise/oauth2_providable/version.rb,
lib/devise/oauth2_providable/expirable_token.rb,
app/controllers/devise/oauth2_providable/authorizations_controller.rb

Defined Under Namespace

Modules: ExpirableToken Classes: AccessToken, AuthorizationCode, AuthorizationsController, Client, Engine, RefreshToken, TokensController

Constant Summary collapse

CLIENT_ENV_REF =
'oauth2.client'
REFRESH_TOKEN_ENV_REF =
"oauth2.refresh_token"
VERSION =
"1.1.6"

Class Method Summary collapse

Class Method Details

.random_idObject



21
22
23
# File 'lib/devise_oauth2_providable.rb', line 21

def random_id
  SecureRandom.hex
end

.table_name_prefixObject



24
25
26
# File 'lib/devise_oauth2_providable.rb', line 24

def table_name_prefix
  'oauth2_'
end