Class: Doorkeeper::Request::RefreshToken
- Inherits:
-
Strategy
- Object
- Strategy
- Doorkeeper::Request::RefreshToken
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
Instance Method Details
#refresh_token ⇒ Object
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
|
#request ⇒ Object
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
|