Module: Rack::OAuth2::AccessToken::Introspectable

Defined in:
lib/patch/rack/oauth2/access_token/introspectable.rb

Defined Under Namespace

Classes: Result

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



23
24
25
# File 'lib/patch/rack/oauth2/access_token/introspectable.rb', line 23

def self.included(klass)
  klass.send :attr_accessor, *Result::ATTRIBUTES
end

Instance Method Details

#introspect(app_token) ⇒ Object



27
28
29
30
31
32
# File 'lib/patch/rack/oauth2/access_token/introspectable.rb', line 27

def introspect(app_token)
  Result.new.fetch(
    :access_token => app_token,
    :input_token => access_token
  )
end