Class: KeycloakOauth::PostUsersService

Inherits:
AuthorizableService show all
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

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:, 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

#connectionObject (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_paramsObject (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_paramsObject (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_requestObject



17
18
19
# File 'app/services/keycloak_oauth/post_users_service.rb', line 17

def send_request
  post_users
end