Class Oauth2Token
In: lib/generators/active_record/oauth_provider_templates/oauth2_token.rb
lib/generators/mongoid/oauth_provider_templates/oauth2_token.rb
lib/oauth/models/consumers/services/oauth2_token.rb
Parent: AccessToken

Methods

Attributes

state  [RW] 
state  [RW] 

Public Class methods

Public Instance methods

Refreshes the access token to ensure access

Returns the expiration date (expires_in, expires_at)

@return [String, String] Expires_in and expires_at, respectively @note It will return the default expiration time as defined in the OAuth 2.0 spec when no options are set

@return [Boolean] Is the access token expired and does the record exist in the datastore?

[Validate]