Class: Doorkeeper::Request::RefreshToken

Inherits:
Strategy
  • Object
show all
Defined in:
lib/doorkeeper/request/refresh_token.rb

Instance Attribute Summary

Attributes inherited from Strategy

#server

Instance Method Summary collapse

Methods inherited from Strategy

#initialize

Constructor Details

This class inherits a constructor from Doorkeeper::Request::Strategy

Instance Method Details

#refresh_tokenObject



8
9
10
# File 'lib/doorkeeper/request/refresh_token.rb', line 8

def refresh_token
  Doorkeeper.config.access_token_model.by_refresh_token(parameters[:refresh_token])
end

#requestObject



12
13
14
15
16
17
18
19
# File 'lib/doorkeeper/request/refresh_token.rb', line 12

def request
  @request ||= OAuth::RefreshTokenRequest.new(
    Doorkeeper.config,
    refresh_token,
    credentials,
    parameters,
  )
end