Class: KeycloakAdmin::Configuration
- Inherits:
-
Object
- Object
- KeycloakAdmin::Configuration
- Defined in:
- lib/keycloak-admin/configuration.rb
Instance Attribute Summary collapse
-
#client_id ⇒ Object
Returns the value of attribute client_id.
-
#client_realm_name ⇒ Object
Returns the value of attribute client_realm_name.
-
#client_secret ⇒ Object
Returns the value of attribute client_secret.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#password ⇒ Object
Returns the value of attribute password.
-
#rest_client_options ⇒ Object
Returns the value of attribute rest_client_options.
-
#server_domain ⇒ Object
Returns the value of attribute server_domain.
-
#server_url ⇒ Object
Returns the value of attribute server_url.
-
#use_service_account ⇒ Object
Returns the value of attribute use_service_account.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
Instance Attribute Details
#client_id ⇒ Object
Returns the value of attribute client_id.
5 6 7 |
# File 'lib/keycloak-admin/configuration.rb', line 5 def client_id @client_id end |
#client_realm_name ⇒ Object
Returns the value of attribute client_realm_name.
5 6 7 |
# File 'lib/keycloak-admin/configuration.rb', line 5 def client_realm_name @client_realm_name end |
#client_secret ⇒ Object
Returns the value of attribute client_secret.
5 6 7 |
# File 'lib/keycloak-admin/configuration.rb', line 5 def client_secret @client_secret end |
#logger ⇒ Object
Returns the value of attribute logger.
5 6 7 |
# File 'lib/keycloak-admin/configuration.rb', line 5 def logger @logger end |
#password ⇒ Object
Returns the value of attribute password.
5 6 7 |
# File 'lib/keycloak-admin/configuration.rb', line 5 def password @password end |
#rest_client_options ⇒ Object
Returns the value of attribute rest_client_options.
5 6 7 |
# File 'lib/keycloak-admin/configuration.rb', line 5 def @rest_client_options end |
#server_domain ⇒ Object
Returns the value of attribute server_domain.
5 6 7 |
# File 'lib/keycloak-admin/configuration.rb', line 5 def server_domain @server_domain end |
#server_url ⇒ Object
Returns the value of attribute server_url.
5 6 7 |
# File 'lib/keycloak-admin/configuration.rb', line 5 def server_url @server_url end |
#use_service_account ⇒ Object
Returns the value of attribute use_service_account.
5 6 7 |
# File 'lib/keycloak-admin/configuration.rb', line 5 def use_service_account @use_service_account end |
#username ⇒ Object
Returns the value of attribute username.
5 6 7 |
# File 'lib/keycloak-admin/configuration.rb', line 5 def username @username end |
Instance Method Details
#body_for_token_retrieval ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/keycloak-admin/configuration.rb', line 7 def body_for_token_retrieval if use_service_account body_for_service_account else body_for_username_and_password end end |
#headers_for_token_retrieval ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/keycloak-admin/configuration.rb', line 15 def headers_for_token_retrieval if use_service_account headers_for_service_account else headers_for_username_and_password end end |