Class: KeycloakOauth::UserInfoRetrievalService
- Inherits:
-
AuthorizableService
- Object
- AuthorizableService
- KeycloakOauth::UserInfoRetrievalService
- Defined in:
- app/services/keycloak_oauth/user_info_retrieval_service.rb
Constant Summary
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 collapse
-
#user_information ⇒ Object
readonly
Returns the value of attribute user_information.
Attributes inherited from AuthorizableService
#http_response, #parsed_response_body
Instance Method Summary collapse
-
#initialize(access_token:, refresh_token:) ⇒ UserInfoRetrievalService
constructor
A new instance of UserInfoRetrievalService.
- #send_request ⇒ Object
Methods inherited from AuthorizableService
#perform, uri_with_supported_query_params
Constructor Details
#initialize(access_token:, refresh_token:) ⇒ UserInfoRetrievalService
Returns a new instance of UserInfoRetrievalService.
7 8 9 10 |
# File 'app/services/keycloak_oauth/user_info_retrieval_service.rb', line 7 def initialize(access_token:, refresh_token:) @access_token = access_token @refresh_token = refresh_token end |
Instance Attribute Details
#user_information ⇒ Object (readonly)
Returns the value of attribute user_information.
5 6 7 |
# File 'app/services/keycloak_oauth/user_info_retrieval_service.rb', line 5 def user_information @user_information end |
Instance Method Details
#send_request ⇒ Object
12 13 14 |
# File 'app/services/keycloak_oauth/user_info_retrieval_service.rb', line 12 def send_request get_user end |