Class: KeycloakOauth::PostRefreshTokenService

Inherits:
AuthorizableService show all
Defined in:
app/services/keycloak_oauth/post_refresh_token_service.rb

Constant Summary collapse

DEFAULT_GRANT_TYPE =
'refresh_token'.freeze

Constants inherited from AuthorizableService

AuthorizableService::AUTHORIZATION_HEADER, AuthorizableService::CONTENT_TYPE_JSON, AuthorizableService::CONTENT_TYPE_X_WWW_FORM_URLENCODED, AuthorizableService::HTTP_SUCCESS_CODES

Instance Attribute Summary

Attributes inherited from AuthorizableService

#http_response, #parsed_response_body

Instance Method Summary collapse

Methods inherited from AuthorizableService

#perform, uri_with_supported_query_params

Constructor Details

#initialize(connection:, refresh_token:) ⇒ PostRefreshTokenService

Returns a new instance of PostRefreshTokenService.



7
8
9
10
# File 'app/services/keycloak_oauth/post_refresh_token_service.rb', line 7

def initialize(connection:, refresh_token:)
  @connection = connection
  @refresh_token = refresh_token
end

Instance Method Details

#send_requestObject



12
13
14
# File 'app/services/keycloak_oauth/post_refresh_token_service.rb', line 12

def send_request
  post_token
end