module AuthProvider
Constants
- VERSION
Public Class Methods
configuration()
click to toggle source
# File lib/auth_provider/config.rb, line 13 def configuration @config || (raise MissingConfiguration) end
Also aliased as: config
configure(&block)
click to toggle source
# File lib/auth_provider/config.rb, line 9 def configure(&block) @config = Config::Builder.new(&block).build end
resource_owner_from_token(token)
click to toggle source
# File lib/auth_provider/resource_owner_from_token.rb, line 2 def self.resource_owner_from_token(token) oauth_access_token = OAuthAccessToken.find_by(token: token) return nil if oauth_access_token.blank? || !oauth_access_token.valid? oauth_access_token.use! oauth_access_token.resource_owner end