app/models/google_apps/credential_store.rb
# Do not change the signature of this method because it is invoked by Google::APIClient
Do not change the signature of this method because it is invoked by Google::APIClient
Do not change the signature of this method because it is invoked by Google :: APIClient
def load_credentials
      oauth2_data = User::Oauth2Data.get(@uid, @app_id)
      return nil if oauth2_data.empty?
      credentials = CredentialStore.settings_of @app_id
      credentials.merge! oauth2_data
      unless credentials[:expires_in] && credentials[:issued_at]
        credentials[:expires_in] = 3600
        expiration_time = credentials[:expiration_time].to_i
        credentials[:issued_at] = Time.at(expiration_time - 3600)
      end
      credentials
    end
def load_credentials oauth2_data = User :: Oauth2Data . get ( @uid , @app_id ) return nil if oauth2_data . empty? credentials = CredentialStore . settings_of @app_id credentials . merge! oauth2_data unless credentials [ :expires_in ] && credentials [ :issued_at ] credentials [ :expires_in ] = 3600 expiration_time = credentials [ :expiration_time ] . to_i credentials [ :issued_at ] = Time . at ( expiration_time - 3600 ) end credentials end
Do not change the signature of this method because it is invoked by Google::APIClient
Do not change the signature of this method because it is invoked by Google :: APIClient
# Infer times