Sha256: ea39948e414f916efc816f9e4dad8e2d74ecb4bcf7c397cf827a7ab3eaf3782f
Contents?: true
Size: 1.42 KB
Versions: 2
Compression:
Stored size: 1.42 KB
Contents
require 'devise' require 'rack/oauth2' require 'devise/oauth2_providable/engine' require 'devise/oauth2_providable/strategies/oauth2_providable_strategy' require 'devise/oauth2_providable/strategies/oauth2_password_grant_type_strategy' require 'devise/oauth2_providable/strategies/oauth2_refresh_token_grant_type_strategy' require 'devise/oauth2_providable/strategies/oauth2_authorization_code_grant_type_strategy' require 'devise/oauth2_providable/models/oauth2_providable' require 'devise/oauth2_providable/models/oauth2_password_grantable' require 'devise/oauth2_providable/models/oauth2_refresh_token_grantable' require 'devise/oauth2_providable/models/oauth2_authorization_code_grantable' module Devise module Oauth2Providable class << self def random_id SecureRandom.hex end def table_name_prefix 'oauth2_' end end end end Devise.add_module(:oauth2_providable, :strategy => true, :model => 'devise/oauth2_providable/models/oauth2_providable') Devise.add_module(:oauth2_password_grantable, :strategy => true, :model => 'devise/oauth2_providable/models/oauth2_password_grantable') Devise.add_module(:oauth2_refresh_token_grantable, :strategy => true, :model => 'devise/oauth2_providable/models/oauth2_refresh_token_grantable') Devise.add_module(:oauth2_authorization_code_grantable, :strategy => true, :model => 'devise/oauth2_providable/models/oauth2_authorization_code_grantable')
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
devise_oauth2_providable-1.0.0 | lib/devise_oauth2_providable.rb |
devise_oauth2_providable-1.0.0.beta1 | lib/devise_oauth2_providable.rb |