Class: KeycloakOauth::PostUsersService
- Inherits:
-
AuthorizableService
- Object
- AuthorizableService
- KeycloakOauth::PostUsersService
- Defined in:
- app/services/keycloak_oauth/post_users_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
-
#connection ⇒ Object
readonly
Returns the value of attribute connection.
-
#request_params ⇒ Object
readonly
Returns the value of attribute request_params.
-
#user_params ⇒ Object
readonly
Returns the value of attribute user_params.
Attributes inherited from AuthorizableService
#http_response, #parsed_response_body
Instance Method Summary collapse
-
#initialize(connection:, access_token:, refresh_token:, user_params:) ⇒ PostUsersService
constructor
A new instance of PostUsersService.
- #send_request ⇒ Object
Methods inherited from AuthorizableService
#perform, uri_with_supported_query_params
Constructor Details
#initialize(connection:, access_token:, refresh_token:, user_params:) ⇒ PostUsersService
Returns a new instance of PostUsersService.
10 11 12 13 14 15 |
# File 'app/services/keycloak_oauth/post_users_service.rb', line 10 def initialize(connection:, access_token:, refresh_token:, user_params:) @connection = connection @access_token = access_token @refresh_token = refresh_token @user_params = user_params end |
Instance Attribute Details
#connection ⇒ Object (readonly)
Returns the value of attribute connection.
8 9 10 |
# File 'app/services/keycloak_oauth/post_users_service.rb', line 8 def connection @connection end |
#request_params ⇒ Object (readonly)
Returns the value of attribute request_params.
8 9 10 |
# File 'app/services/keycloak_oauth/post_users_service.rb', line 8 def request_params @request_params end |
#user_params ⇒ Object (readonly)
Returns the value of attribute user_params.
8 9 10 |
# File 'app/services/keycloak_oauth/post_users_service.rb', line 8 def user_params @user_params end |
Instance Method Details
#send_request ⇒ Object
17 18 19 |
# File 'app/services/keycloak_oauth/post_users_service.rb', line 17 def send_request post_users end |