Class: KeycloakOauth::GetUsersService
- Inherits:
-
AuthorizableService
- Object
- AuthorizableService
- KeycloakOauth::GetUsersService
- Defined in:
- app/services/keycloak_oauth/get_users_service.rb
Constant Summary collapse
- SUPPORTED_QUERY_PARAMS =
%i(briefRepresentation email first firstName lastName max search username)
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.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Attributes inherited from AuthorizableService
#http_response, #parsed_response_body
Instance Method Summary collapse
-
#initialize(connection:, access_token:, refresh_token:, options: {}) ⇒ GetUsersService
constructor
A new instance of GetUsersService.
- #send_request ⇒ Object
Methods inherited from AuthorizableService
#perform, uri_with_supported_query_params
Constructor Details
#initialize(connection:, access_token:, refresh_token:, options: {}) ⇒ GetUsersService
Returns a new instance of GetUsersService.
9 10 11 12 13 14 |
# File 'app/services/keycloak_oauth/get_users_service.rb', line 9 def initialize(connection:, access_token:, refresh_token:, options: {}) @connection = connection @access_token = access_token @refresh_token = refresh_token @options = end |
Instance Attribute Details
#connection ⇒ Object (readonly)
Returns the value of attribute connection.
7 8 9 |
# File 'app/services/keycloak_oauth/get_users_service.rb', line 7 def connection @connection end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
7 8 9 |
# File 'app/services/keycloak_oauth/get_users_service.rb', line 7 def @options end |
Instance Method Details
#send_request ⇒ Object
16 17 18 |
# File 'app/services/keycloak_oauth/get_users_service.rb', line 16 def send_request get_users end |