Class: Kong::OAuth2Token
- Inherits:
-
Object
- Object
- Kong::OAuth2Token
- Includes:
- Base
- Defined in:
- lib/kong/oauth2_token.rb
Constant Summary collapse
- ATTRIBUTE_NAMES =
%w(id credential_id expires_in created_at token_type access_token refresh_token scope authenticated_userid).freeze
- API_END_POINT =
"/oauth2_tokens/".freeze
Instance Attribute Summary
Attributes included from Base
Instance Method Summary collapse
-
#oauth_app ⇒ Kong::OAuthApp
Get OAuthApp resource.
Methods included from Base
#client, #create, #create_or_update, #delete, #get, included, #initialize, #method_missing, #new?, #respond_to?, #save, #update
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Kong::Base
Instance Method Details
#oauth_app ⇒ Kong::OAuthApp
Get OAuthApp resource
10 11 12 |
# File 'lib/kong/oauth2_token.rb', line 10 def oauth_app Kong::OAuthApp.find_by_id(self.credential_id) end |