.. Document meta :orphan: .. |antsibull-internal-nbsp| unicode:: 0xA0 :trim: .. role:: ansible-attribute-support-label .. role:: ansible-attribute-support-property .. role:: ansible-attribute-support-full .. role:: ansible-attribute-support-partial .. role:: ansible-attribute-support-none .. role:: ansible-attribute-support-na .. role:: ansible-option-type .. role:: ansible-option-elements .. role:: ansible-option-required .. role:: ansible-option-versionadded .. role:: ansible-option-aliases .. role:: ansible-option-choices .. role:: ansible-option-choices-default-mark .. role:: ansible-option-default-bold .. role:: ansible-option-configuration .. role:: ansible-option-returned-bold .. role:: ansible-option-sample-bold .. Anchors .. _ansible_collections.middleware_automation.keycloak.keycloak_client_module: .. Anchors: short name for ansible.builtin .. Anchors: aliases .. Title keycloak_client -- Allows administration of Keycloak clients via Keycloak API +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. Collection note .. note:: This module is part of the `middleware_automation.keycloak collection `_. To install it, use: :code:`ansible-galaxy collection install middleware\_automation.keycloak`. To use it in a playbook, specify: :code:`middleware_automation.keycloak.keycloak_client`. .. version_added .. contents:: :local: :depth: 1 .. Deprecated Synopsis -------- .. Description - This module allows the administration of Keycloak clients via the Keycloak REST API. It requires access to the REST API via OpenID Connect; the user connecting and the client being used must have the requisite access rights. In a default Keycloak installation, admin-cli and an admin user would work, as would a separate client definition with the scope tailored to your needs and a user having the expected roles. - The names of module options are snake\_cased versions of the camelCase ones found in the Keycloak API and its documentation at \ https://www.keycloak.org/docs-api/8.0/rest-api/index.html\ . Aliases are provided so camelCased versions can be used as well. - The Keycloak API does not always sanity check inputs e.g. you can set SAML-specific settings on an OpenID Connect client for instance and vice versa. Be careful. If you do not specify a setting, usually a sensible default is chosen. .. Aliases .. Requirements .. Options Parameters ---------- .. rst-class:: ansible-option-table .. list-table:: :width: 100% :widths: auto :header-rows: 1 * - Parameter - Comments * - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-admin_url: .. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-adminurl: .. rst-class:: ansible-option-title **admin_url** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-aliases:`aliases: adminUrl` .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
URL to the admin interface of the client. This is 'adminUrl' in the Keycloak REST API. .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-always_display_in_console: .. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-alwaysdisplayinconsole: .. rst-class:: ansible-option-title **always_display_in_console** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-aliases:`aliases: alwaysDisplayInConsole` .. rst-class:: ansible-option-type-line :ansible-option-type:`boolean` :ansible-option-versionadded:`added in middleware\_automation.keycloak 4.7.0` .. raw:: html
- .. raw:: html
Whether or not to display this client in account console, even if the user does not have an active session. .. rst-class:: ansible-option-line :ansible-option-choices:`Choices:` - :ansible-option-choices-entry:`false` - :ansible-option-choices-entry:`true` .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-attributes: .. rst-class:: ansible-option-title **attributes** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`dictionary` .. raw:: html
- .. raw:: html
A dict of further attributes for this client. This can contain various configuration settings; an example is given in the examples section. While an exhaustive list of permissible options is not available; possible options as of Keycloak 3.4 are listed below. The Keycloak API does not validate whether a given option is appropriate for the protocol used; if specified anyway, Keycloak will simply not use it. .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-attributes/jwks.url: .. rst-class:: ansible-option-title **jwks.url** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
For OpenID-Connect clients, URL where client keys in JWK are stored. .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-attributes/jwt.credential.certificate: .. rst-class:: ansible-option-title **jwt.credential.certificate** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
For OpenID-Connect clients, client certificate for validating JWT issued by client and signed by its key, base64-encoded. .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-attributes/request.object.signature.alg: .. rst-class:: ansible-option-title **request.object.signature.alg** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
For OpenID-Connect clients, JWA algorithm which the client needs to use when sending OIDC request object. One of \ :literal:`any`\ , \ :literal:`none`\ , \ :literal:`RS256`\ . .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-attributes/saml.authnstatement: .. rst-class:: ansible-option-title **saml.authnstatement** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
For SAML clients, boolean specifying whether or not a statement containing method and timestamp should be included in the login response. .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-attributes/saml.client.signature: .. rst-class:: ansible-option-title **saml.client.signature** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
For SAML clients, boolean specifying whether a client signature is required and validated. .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-attributes/saml.encrypt: .. rst-class:: ansible-option-title **saml.encrypt** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
Boolean specifying whether SAML assertions should be encrypted with the client's public key. .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-attributes/saml.force.post.binding: .. rst-class:: ansible-option-title **saml.force.post.binding** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
For SAML clients, boolean specifying whether always to use POST binding for responses. .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-attributes/saml.onetimeuse.condition: .. rst-class:: ansible-option-title **saml.onetimeuse.condition** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
For SAML clients, boolean specifying whether a OneTimeUse condition should be included in login responses. .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-attributes/saml.server.signature: .. rst-class:: ansible-option-title **saml.server.signature** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
Boolean specifying whether SAML documents should be signed by the realm. .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-attributes/saml.server.signature.keyinfo.ext: .. rst-class:: ansible-option-title **saml.server.signature.keyinfo.ext** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
For SAML clients, boolean specifying whether REDIRECT signing key lookup should be optimized through inclusion of the signing key id in the SAML Extensions element. .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-attributes/saml.signature.algorithm: .. rst-class:: ansible-option-title **saml.signature.algorithm** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
Signature algorithm used to sign SAML documents. One of \ :literal:`RSA\_SHA256`\ , \ :literal:`RSA\_SHA1`\ , \ :literal:`RSA\_SHA512`\ , or \ :literal:`DSA\_SHA1`\ . .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-attributes/saml.signing.certificate: .. rst-class:: ansible-option-title **saml.signing.certificate** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
SAML signing key certificate, base64-encoded. .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-attributes/saml.signing.private.key: .. rst-class:: ansible-option-title **saml.signing.private.key** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
SAML signing key private key, base64-encoded. .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-attributes/saml_assertion_consumer_url_post: .. rst-class:: ansible-option-title **saml_assertion_consumer_url_post** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
SAML POST Binding URL for the client's assertion consumer service (login responses). .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-attributes/saml_assertion_consumer_url_redirect: .. rst-class:: ansible-option-title **saml_assertion_consumer_url_redirect** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
SAML Redirect Binding URL for the client's assertion consumer service (login responses). .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-attributes/saml_force_name_id_format: .. rst-class:: ansible-option-title **saml_force_name_id_format** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
For SAML clients, Boolean specifying whether to ignore requested NameID subject format and using the configured one instead. .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-attributes/saml_name_id_format: .. rst-class:: ansible-option-title **saml_name_id_format** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
For SAML clients, the NameID format to use (one of \ :literal:`username`\ , \ :literal:`email`\ , \ :literal:`transient`\ , or \ :literal:`persistent`\ ) .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-attributes/saml_signature_canonicalization_method: .. rst-class:: ansible-option-title **saml_signature_canonicalization_method** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
SAML signature canonicalization method. This is one of four values, namely \ :literal:`http://www.w3.org/2001/10/xml-exc-c14n#`\ for EXCLUSIVE, \ :literal:`http://www.w3.org/2001/10/xml-exc-c14n#WithComments`\ for EXCLUSIVE\_WITH\_COMMENTS, \ :literal:`http://www.w3.org/TR/2001/REC-xml-c14n-20010315`\ for INCLUSIVE, and \ :literal:`http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments`\ for INCLUSIVE\_WITH\_COMMENTS. .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-attributes/saml_single_logout_service_url_post: .. rst-class:: ansible-option-title **saml_single_logout_service_url_post** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
SAML POST binding url for the client's single logout service. .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-attributes/saml_single_logout_service_url_redirect: .. rst-class:: ansible-option-title **saml_single_logout_service_url_redirect** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
SAML redirect binding url for the client's single logout service. .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-attributes/use.jwks.url: .. rst-class:: ansible-option-title **use.jwks.url** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
For OpenID-Connect clients, boolean specifying whether to use a JWKS URL to obtain client public keys. .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-attributes/user.info.response.signature.alg: .. rst-class:: ansible-option-title **user.info.response.signature.alg** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
For OpenID-Connect clients, JWA algorithm for signed UserInfo-endpoint responses. One of \ :literal:`RS256`\ or \ :literal:`unsigned`\ . .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-auth_client_id: .. rst-class:: ansible-option-title **auth_client_id** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
OpenID Connect \ :emphasis:`client\_id`\ to authenticate to the API with. .. rst-class:: ansible-option-line :ansible-option-default-bold:`Default:` :ansible-option-default:`"admin-cli"` .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-auth_client_secret: .. rst-class:: ansible-option-title **auth_client_secret** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
Client Secret to use in conjunction with \ :emphasis:`auth\_client\_id`\ (if required). .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-auth_keycloak_url: .. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-url: .. rst-class:: ansible-option-title **auth_keycloak_url** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-aliases:`aliases: url` .. rst-class:: ansible-option-type-line :ansible-option-type:`string` / :ansible-option-required:`required` .. raw:: html
- .. raw:: html
URL to the Keycloak instance. .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-auth_password: .. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-password: .. rst-class:: ansible-option-title **auth_password** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-aliases:`aliases: password` .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
Password to authenticate for API access with. .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-auth_realm: .. rst-class:: ansible-option-title **auth_realm** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
Keycloak realm name to authenticate to for API access. .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-auth_username: .. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-username: .. rst-class:: ansible-option-title **auth_username** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-aliases:`aliases: username` .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
Username to authenticate for API access with. .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-authentication_flow_binding_overrides: .. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-authenticationflowbindingoverrides: .. rst-class:: ansible-option-title **authentication_flow_binding_overrides** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-aliases:`aliases: authenticationFlowBindingOverrides` .. rst-class:: ansible-option-type-line :ansible-option-type:`dictionary` :ansible-option-versionadded:`added in middleware\_automation.keycloak 3.4.0` .. raw:: html
- .. raw:: html
Override realm authentication flow bindings. .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-authorization_services_enabled: .. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-authorizationservicesenabled: .. rst-class:: ansible-option-title **authorization_services_enabled** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-aliases:`aliases: authorizationServicesEnabled` .. rst-class:: ansible-option-type-line :ansible-option-type:`boolean` .. raw:: html
- .. raw:: html
Are authorization services enabled for this client or not (OpenID connect). This is 'authorizationServicesEnabled' in the Keycloak REST API. .. rst-class:: ansible-option-line :ansible-option-choices:`Choices:` - :ansible-option-choices-entry:`false` - :ansible-option-choices-entry:`true` .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-authorization_settings: .. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-authorizationsettings: .. rst-class:: ansible-option-title **authorization_settings** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-aliases:`aliases: authorizationSettings` .. rst-class:: ansible-option-type-line :ansible-option-type:`dictionary` .. raw:: html
- .. raw:: html
a data structure defining the authorization settings for this client. For reference, please see the Keycloak API docs at \ https://www.keycloak.org/docs-api/8.0/rest-api/index.html#_resourceserverrepresentation\ . This is 'authorizationSettings' in the Keycloak REST API. .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-base_url: .. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-baseurl: .. rst-class:: ansible-option-title **base_url** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-aliases:`aliases: baseUrl` .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
Default URL to use when the auth server needs to redirect or link back to the client This is 'baseUrl' in the Keycloak REST API. .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-bearer_only: .. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-beareronly: .. rst-class:: ansible-option-title **bearer_only** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-aliases:`aliases: bearerOnly` .. rst-class:: ansible-option-type-line :ansible-option-type:`boolean` .. raw:: html
- .. raw:: html
The access type of this client is bearer-only. This is 'bearerOnly' in the Keycloak REST API. .. rst-class:: ansible-option-line :ansible-option-choices:`Choices:` - :ansible-option-choices-entry:`false` - :ansible-option-choices-entry:`true` .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-client_authenticator_type: .. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-clientauthenticatortype: .. rst-class:: ansible-option-title **client_authenticator_type** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-aliases:`aliases: clientAuthenticatorType` .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
How do clients authenticate with the auth server? Either \ :literal:`client-secret`\ or \ :literal:`client-jwt`\ can be chosen. When using \ :literal:`client-secret`\ , the module parameter \ :emphasis:`secret`\ can set it, while for \ :literal:`client-jwt`\ , you can use the keys \ :literal:`use.jwks.url`\ , \ :literal:`jwks.url`\ , and \ :literal:`jwt.credential.certificate`\ in the \ :emphasis:`attributes`\ module parameter to configure its behavior. This is 'clientAuthenticatorType' in the Keycloak REST API. .. rst-class:: ansible-option-line :ansible-option-choices:`Choices:` - :ansible-option-choices-entry:`"client-secret"` - :ansible-option-choices-entry:`"client-jwt"` .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-client_id: .. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-clientid: .. rst-class:: ansible-option-title **client_id** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-aliases:`aliases: clientId` .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
Client id of client to be worked on. This is usually an alphanumeric name chosen by you. Either this or \ :emphasis:`id`\ is required. If you specify both, \ :emphasis:`id`\ takes precedence. This is 'clientId' in the Keycloak REST API. .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-client_template: .. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-clienttemplate: .. rst-class:: ansible-option-title **client_template** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-aliases:`aliases: clientTemplate` .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
Client template to use for this client. If it does not exist this field will silently be dropped. This is 'clientTemplate' in the Keycloak REST API. .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-connection_timeout: .. rst-class:: ansible-option-title **connection_timeout** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`integer` :ansible-option-versionadded:`added in middleware\_automation.keycloak 4.5.0` .. raw:: html
- .. raw:: html
Controls the HTTP connections timeout period (in seconds) to Keycloak API. .. rst-class:: ansible-option-line :ansible-option-default-bold:`Default:` :ansible-option-default:`10` .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-consent_required: .. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-consentrequired: .. rst-class:: ansible-option-title **consent_required** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-aliases:`aliases: consentRequired` .. rst-class:: ansible-option-type-line :ansible-option-type:`boolean` .. raw:: html
- .. raw:: html
If enabled, users have to consent to client access. This is 'consentRequired' in the Keycloak REST API. .. rst-class:: ansible-option-line :ansible-option-choices:`Choices:` - :ansible-option-choices-entry:`false` - :ansible-option-choices-entry:`true` .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-default_client_scopes: .. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-defaultclientscopes: .. rst-class:: ansible-option-title **default_client_scopes** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-aliases:`aliases: defaultClientScopes` .. rst-class:: ansible-option-type-line :ansible-option-type:`list` / :ansible-option-elements:`elements=string` :ansible-option-versionadded:`added in middleware\_automation.keycloak 4.7.0` .. raw:: html
- .. raw:: html
List of default client scopes. .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-default_roles: .. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-defaultroles: .. rst-class:: ansible-option-title **default_roles** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-aliases:`aliases: defaultRoles` .. rst-class:: ansible-option-type-line :ansible-option-type:`list` / :ansible-option-elements:`elements=string` .. raw:: html
- .. raw:: html
list of default roles for this client. If the client roles referenced do not exist yet, they will be created. This is 'defaultRoles' in the Keycloak REST API. .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-description: .. rst-class:: ansible-option-title **description** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
Description of the client in Keycloak. .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-direct_access_grants_enabled: .. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-directaccessgrantsenabled: .. rst-class:: ansible-option-title **direct_access_grants_enabled** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-aliases:`aliases: directAccessGrantsEnabled` .. rst-class:: ansible-option-type-line :ansible-option-type:`boolean` .. raw:: html
- .. raw:: html
Are direct access grants enabled for this client or not (OpenID connect). This is 'directAccessGrantsEnabled' in the Keycloak REST API. .. rst-class:: ansible-option-line :ansible-option-choices:`Choices:` - :ansible-option-choices-entry:`false` - :ansible-option-choices-entry:`true` .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-enabled: .. rst-class:: ansible-option-title **enabled** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`boolean` .. raw:: html
- .. raw:: html
Is this client enabled or not? .. rst-class:: ansible-option-line :ansible-option-choices:`Choices:` - :ansible-option-choices-entry:`false` - :ansible-option-choices-entry:`true` .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-frontchannel_logout: .. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-frontchannellogout: .. rst-class:: ansible-option-title **frontchannel_logout** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-aliases:`aliases: frontchannelLogout` .. rst-class:: ansible-option-type-line :ansible-option-type:`boolean` .. raw:: html
- .. raw:: html
Is frontchannel logout enabled for this client or not. This is 'frontchannelLogout' in the Keycloak REST API. .. rst-class:: ansible-option-line :ansible-option-choices:`Choices:` - :ansible-option-choices-entry:`false` - :ansible-option-choices-entry:`true` .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-full_scope_allowed: .. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-fullscopeallowed: .. rst-class:: ansible-option-title **full_scope_allowed** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-aliases:`aliases: fullScopeAllowed` .. rst-class:: ansible-option-type-line :ansible-option-type:`boolean` .. raw:: html
- .. raw:: html
Is the "Full Scope Allowed" feature set for this client or not. This is 'fullScopeAllowed' in the Keycloak REST API. .. rst-class:: ansible-option-line :ansible-option-choices:`Choices:` - :ansible-option-choices-entry:`false` - :ansible-option-choices-entry:`true` .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-http_agent: .. rst-class:: ansible-option-title **http_agent** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` :ansible-option-versionadded:`added in middleware\_automation.keycloak 5.4.0` .. raw:: html
- .. raw:: html
Configures the HTTP User-Agent header. .. rst-class:: ansible-option-line :ansible-option-default-bold:`Default:` :ansible-option-default:`"Ansible"` .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-id: .. rst-class:: ansible-option-title **id** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
Id of client to be worked on. This is usually an UUID. Either this or \ :emphasis:`client\_id`\ is required. If you specify both, this takes precedence. .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-implicit_flow_enabled: .. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-implicitflowenabled: .. rst-class:: ansible-option-title **implicit_flow_enabled** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-aliases:`aliases: implicitFlowEnabled` .. rst-class:: ansible-option-type-line :ansible-option-type:`boolean` .. raw:: html
- .. raw:: html
Enable implicit flow for this client or not (OpenID connect). This is 'implicitFlowEnabled' in the Keycloak REST API. .. rst-class:: ansible-option-line :ansible-option-choices:`Choices:` - :ansible-option-choices-entry:`false` - :ansible-option-choices-entry:`true` .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-name: .. rst-class:: ansible-option-title **name** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
Name of the client (this is not the same as \ :emphasis:`client\_id`\ ). .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-node_re_registration_timeout: .. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-nodereregistrationtimeout: .. rst-class:: ansible-option-title **node_re_registration_timeout** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-aliases:`aliases: nodeReRegistrationTimeout` .. rst-class:: ansible-option-type-line :ansible-option-type:`integer` .. raw:: html
- .. raw:: html
Cluster node re-registration timeout for this client. This is 'nodeReRegistrationTimeout' in the Keycloak REST API. .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-not_before: .. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-notbefore: .. rst-class:: ansible-option-title **not_before** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-aliases:`aliases: notBefore` .. rst-class:: ansible-option-type-line :ansible-option-type:`integer` .. raw:: html
- .. raw:: html
Revoke any tokens issued before this date for this client (this is a UNIX timestamp). This is 'notBefore' in the Keycloak REST API. .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-optional_client_scopes: .. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-optionalclientscopes: .. rst-class:: ansible-option-title **optional_client_scopes** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-aliases:`aliases: optionalClientScopes` .. rst-class:: ansible-option-type-line :ansible-option-type:`list` / :ansible-option-elements:`elements=string` :ansible-option-versionadded:`added in middleware\_automation.keycloak 4.7.0` .. raw:: html
- .. raw:: html
List of optional client scopes. .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-protocol: .. rst-class:: ansible-option-title **protocol** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
Type of client (either \ :literal:`openid-connect`\ or \ :literal:`saml`\ . .. rst-class:: ansible-option-line :ansible-option-choices:`Choices:` - :ansible-option-choices-entry:`"openid-connect"` - :ansible-option-choices-entry:`"saml"` .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-protocol_mappers: .. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-protocolmappers: .. rst-class:: ansible-option-title **protocol_mappers** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-aliases:`aliases: protocolMappers` .. rst-class:: ansible-option-type-line :ansible-option-type:`list` / :ansible-option-elements:`elements=dictionary` .. raw:: html
- .. raw:: html
a list of dicts defining protocol mappers for this client. This is 'protocolMappers' in the Keycloak REST API. .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-protocol_mappers/config: .. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-protocolmappers/config: .. rst-class:: ansible-option-title **config** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`dictionary` .. raw:: html
- .. raw:: html
Dict specifying the configuration options for the protocol mapper; the contents differ depending on the value of \ :emphasis:`protocolMapper`\ and are not documented other than by the source of the mappers and its parent class(es). An example is given below. It is easiest to obtain valid config values by dumping an already-existing protocol mapper configuration through check-mode in the \ :emphasis:`existing`\ field. .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-protocol_mappers/consentrequired: .. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-protocolmappers/consentrequired: .. rst-class:: ansible-option-title **consentRequired** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`boolean` .. raw:: html
- .. raw:: html
Specifies whether a user needs to provide consent to a client for this mapper to be active. .. rst-class:: ansible-option-line :ansible-option-choices:`Choices:` - :ansible-option-choices-entry:`false` - :ansible-option-choices-entry:`true` .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-protocol_mappers/consenttext: .. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-protocolmappers/consenttext: .. rst-class:: ansible-option-title **consentText** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
The human-readable name of the consent the user is presented to accept. .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-protocol_mappers/id: .. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-protocolmappers/id: .. rst-class:: ansible-option-title **id** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
Usually a UUID specifying the internal ID of this protocol mapper instance. .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-protocol_mappers/name: .. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-protocolmappers/name: .. rst-class:: ansible-option-title **name** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
The name of this protocol mapper. .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-protocol_mappers/protocol: .. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-protocolmappers/protocol: .. rst-class:: ansible-option-title **protocol** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
This is either \ :literal:`openid-connect`\ or \ :literal:`saml`\ , this specifies for which protocol this protocol mapper. is active. .. rst-class:: ansible-option-line :ansible-option-choices:`Choices:` - :ansible-option-choices-entry:`"openid-connect"` - :ansible-option-choices-entry:`"saml"` .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-protocol_mappers/protocolmapper: .. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-protocolmappers/protocolmapper: .. rst-class:: ansible-option-title **protocolMapper** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
The Keycloak-internal name of the type of this protocol-mapper. While an exhaustive list is impossible to provide since this may be extended through SPIs by the user of Keycloak, by default Keycloak as of 3.4 ships with at least \ :literal:`docker-v2-allow-all-mapper`\ \ :literal:`oidc-address-mapper`\ \ :literal:`oidc-full-name-mapper`\ \ :literal:`oidc-group-membership-mapper`\ \ :literal:`oidc-hardcoded-claim-mapper`\ \ :literal:`oidc-hardcoded-role-mapper`\ \ :literal:`oidc-role-name-mapper`\ \ :literal:`oidc-script-based-protocol-mapper`\ \ :literal:`oidc-sha256-pairwise-sub-mapper`\ \ :literal:`oidc-usermodel-attribute-mapper`\ \ :literal:`oidc-usermodel-client-role-mapper`\ \ :literal:`oidc-usermodel-property-mapper`\ \ :literal:`oidc-usermodel-realm-role-mapper`\ \ :literal:`oidc-usersessionmodel-note-mapper`\ \ :literal:`saml-group-membership-mapper`\ \ :literal:`saml-hardcode-attribute-mapper`\ \ :literal:`saml-hardcode-role-mapper`\ \ :literal:`saml-role-list-mapper`\ \ :literal:`saml-role-name-mapper`\ \ :literal:`saml-user-attribute-mapper`\ \ :literal:`saml-user-property-mapper`\ \ :literal:`saml-user-session-note-mapper`\ An exhaustive list of available mappers on your installation can be obtained on the admin console by going to Server Info -\> Providers and looking under 'protocol-mapper'. .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-public_client: .. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-publicclient: .. rst-class:: ansible-option-title **public_client** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-aliases:`aliases: publicClient` .. rst-class:: ansible-option-type-line :ansible-option-type:`boolean` .. raw:: html
- .. raw:: html
Is the access type for this client public or not. This is 'publicClient' in the Keycloak REST API. .. rst-class:: ansible-option-line :ansible-option-choices:`Choices:` - :ansible-option-choices-entry:`false` - :ansible-option-choices-entry:`true` .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-realm: .. rst-class:: ansible-option-title **realm** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
The realm to create the client in. .. rst-class:: ansible-option-line :ansible-option-default-bold:`Default:` :ansible-option-default:`"master"` .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-redirect_uris: .. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-redirecturis: .. rst-class:: ansible-option-title **redirect_uris** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-aliases:`aliases: redirectUris` .. rst-class:: ansible-option-type-line :ansible-option-type:`list` / :ansible-option-elements:`elements=string` .. raw:: html
- .. raw:: html
Acceptable redirect URIs for this client. This is 'redirectUris' in the Keycloak REST API. .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-registered_nodes: .. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-registerednodes: .. rst-class:: ansible-option-title **registered_nodes** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-aliases:`aliases: registeredNodes` .. rst-class:: ansible-option-type-line :ansible-option-type:`dictionary` .. raw:: html
- .. raw:: html
dict of registered cluster nodes (with \ :literal:`nodename`\ as the key and last registration time as the value). This is 'registeredNodes' in the Keycloak REST API. .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-registration_access_token: .. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-registrationaccesstoken: .. rst-class:: ansible-option-title **registration_access_token** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-aliases:`aliases: registrationAccessToken` .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
The registration access token provides access for clients to the client registration service. This is 'registrationAccessToken' in the Keycloak REST API. .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-root_url: .. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-rooturl: .. rst-class:: ansible-option-title **root_url** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-aliases:`aliases: rootUrl` .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
Root URL appended to relative URLs for this client. This is 'rootUrl' in the Keycloak REST API. .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-secret: .. rst-class:: ansible-option-title **secret** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
When using \ :emphasis:`client\_authenticator\_type`\ \ :literal:`client-secret`\ (the default), you can specify a secret here (otherwise one will be generated if it does not exit). If changing this secret, the module will not register a change currently (but the changed secret will be saved). .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-service_accounts_enabled: .. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-serviceaccountsenabled: .. rst-class:: ansible-option-title **service_accounts_enabled** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-aliases:`aliases: serviceAccountsEnabled` .. rst-class:: ansible-option-type-line :ansible-option-type:`boolean` .. raw:: html
- .. raw:: html
Are service accounts enabled for this client or not (OpenID connect). This is 'serviceAccountsEnabled' in the Keycloak REST API. .. rst-class:: ansible-option-line :ansible-option-choices:`Choices:` - :ansible-option-choices-entry:`false` - :ansible-option-choices-entry:`true` .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-standard_flow_enabled: .. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-standardflowenabled: .. rst-class:: ansible-option-title **standard_flow_enabled** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-aliases:`aliases: standardFlowEnabled` .. rst-class:: ansible-option-type-line :ansible-option-type:`boolean` .. raw:: html
- .. raw:: html
Enable standard flow for this client or not (OpenID connect). This is 'standardFlowEnabled' in the Keycloak REST API. .. rst-class:: ansible-option-line :ansible-option-choices:`Choices:` - :ansible-option-choices-entry:`false` - :ansible-option-choices-entry:`true` .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-state: .. rst-class:: ansible-option-title **state** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
State of the client On \ :literal:`present`\ , the client will be created (or updated if it exists already). On \ :literal:`absent`\ , the client will be removed if it exists .. rst-class:: ansible-option-line :ansible-option-choices:`Choices:` - :ansible-option-choices-entry-default:`"present"` :ansible-option-choices-default-mark:`← (default)` - :ansible-option-choices-entry:`"absent"` .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-surrogate_auth_required: .. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-surrogateauthrequired: .. rst-class:: ansible-option-title **surrogate_auth_required** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-aliases:`aliases: surrogateAuthRequired` .. rst-class:: ansible-option-type-line :ansible-option-type:`boolean` .. raw:: html
- .. raw:: html
Whether or not surrogate auth is required. This is 'surrogateAuthRequired' in the Keycloak REST API. .. rst-class:: ansible-option-line :ansible-option-choices:`Choices:` - :ansible-option-choices-entry:`false` - :ansible-option-choices-entry:`true` .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-token: .. rst-class:: ansible-option-title **token** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` :ansible-option-versionadded:`added in middleware\_automation.keycloak 3.0.0` .. raw:: html
- .. raw:: html
Authentication token for Keycloak API. .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-use_template_config: .. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-usetemplateconfig: .. rst-class:: ansible-option-title **use_template_config** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-aliases:`aliases: useTemplateConfig` .. rst-class:: ansible-option-type-line :ansible-option-type:`boolean` .. raw:: html
- .. raw:: html
Whether or not to use configuration from the \ :emphasis:`client\_template`\ . This is 'useTemplateConfig' in the Keycloak REST API. .. rst-class:: ansible-option-line :ansible-option-choices:`Choices:` - :ansible-option-choices-entry:`false` - :ansible-option-choices-entry:`true` .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-use_template_mappers: .. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-usetemplatemappers: .. rst-class:: ansible-option-title **use_template_mappers** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-aliases:`aliases: useTemplateMappers` .. rst-class:: ansible-option-type-line :ansible-option-type:`boolean` .. raw:: html
- .. raw:: html
Whether or not to use mapper configuration from the \ :emphasis:`client\_template`\ . This is 'useTemplateMappers' in the Keycloak REST API. .. rst-class:: ansible-option-line :ansible-option-choices:`Choices:` - :ansible-option-choices-entry:`false` - :ansible-option-choices-entry:`true` .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-use_template_scope: .. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-usetemplatescope: .. rst-class:: ansible-option-title **use_template_scope** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-aliases:`aliases: useTemplateScope` .. rst-class:: ansible-option-type-line :ansible-option-type:`boolean` .. raw:: html
- .. raw:: html
Whether or not to use scope configuration from the \ :emphasis:`client\_template`\ . This is 'useTemplateScope' in the Keycloak REST API. .. rst-class:: ansible-option-line :ansible-option-choices:`Choices:` - :ansible-option-choices-entry:`false` - :ansible-option-choices-entry:`true` .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-validate_certs: .. rst-class:: ansible-option-title **validate_certs** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`boolean` .. raw:: html
- .. raw:: html
Verify TLS certificates (do not disable this in production). .. rst-class:: ansible-option-line :ansible-option-choices:`Choices:` - :ansible-option-choices-entry:`false` - :ansible-option-choices-entry-default:`true` :ansible-option-choices-default-mark:`← (default)` .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-web_origins: .. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__parameter-weborigins: .. rst-class:: ansible-option-title **web_origins** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-aliases:`aliases: webOrigins` .. rst-class:: ansible-option-type-line :ansible-option-type:`list` / :ansible-option-elements:`elements=string` .. raw:: html
- .. raw:: html
List of allowed CORS origins. This is 'webOrigins' in the Keycloak REST API. .. raw:: html
.. Attributes Attributes ---------- .. rst-class:: ansible-option-table .. list-table:: :width: 100% :widths: auto :header-rows: 1 * - Attribute - Support - Description * - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__attribute-check_mode: .. rst-class:: ansible-option-title **check_mode** .. raw:: html .. raw:: html
- .. raw:: html
:ansible-attribute-support-label:`Support: \ `\ :ansible-attribute-support-full:`full` .. raw:: html
- .. raw:: html
Can run in \ :literal:`check\_mode`\ and return changed status prediction without modifying target. .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__attribute-diff_mode: .. rst-class:: ansible-option-title **diff_mode** .. raw:: html .. raw:: html
- .. raw:: html
:ansible-attribute-support-label:`Support: \ `\ :ansible-attribute-support-full:`full` .. raw:: html
- .. raw:: html
Will return details on what has changed (or possibly needs changing in \ :literal:`check\_mode`\ ), when in diff mode. .. raw:: html
.. Notes .. Seealso .. Examples Examples -------- .. code-block:: yaml+jinja - name: Create or update Keycloak client (minimal example), authentication with credentials middleware_automation.keycloak.keycloak_client: auth_keycloak_url: https://auth.example.com/auth auth_realm: master auth_username: USERNAME auth_password: PASSWORD client_id: test state: present delegate_to: localhost - name: Create or update Keycloak client (minimal example), authentication with token middleware_automation.keycloak.keycloak_client: auth_client_id: admin-cli auth_keycloak_url: https://auth.example.com/auth auth_realm: master token: TOKEN client_id: test state: present delegate_to: localhost - name: Delete a Keycloak client middleware_automation.keycloak.keycloak_client: auth_client_id: admin-cli auth_keycloak_url: https://auth.example.com/auth auth_realm: master auth_username: USERNAME auth_password: PASSWORD client_id: test state: absent delegate_to: localhost - name: Create or update a Keycloak client (with all the bells and whistles) middleware_automation.keycloak.keycloak_client: auth_client_id: admin-cli auth_keycloak_url: https://auth.example.com/auth auth_realm: master auth_username: USERNAME auth_password: PASSWORD state: present realm: master client_id: test id: d8b127a3-31f6-44c8-a7e4-4ab9a3e78d95 name: this_is_a_test description: Description of this wonderful client root_url: https://www.example.com/ admin_url: https://www.example.com/admin_url base_url: basepath enabled: true client_authenticator_type: client-secret secret: REALLYWELLKEPTSECRET redirect_uris: - https://www.example.com/* - http://localhost:8888/ web_origins: - https://www.example.com/* not_before: 1507825725 bearer_only: false consent_required: false standard_flow_enabled: true implicit_flow_enabled: false direct_access_grants_enabled: false service_accounts_enabled: false authorization_services_enabled: false public_client: false frontchannel_logout: false protocol: openid-connect full_scope_allowed: false node_re_registration_timeout: -1 client_template: test use_template_config: false use_template_scope: false use_template_mappers: false always_display_in_console: true registered_nodes: node01.example.com: 1507828202 registration_access_token: eyJWT_TOKEN surrogate_auth_required: false default_roles: - test01 - test02 authentication_flow_binding_overrides: browser: 4c90336b-bf1d-4b87-916d-3677ba4e5fbb protocol_mappers: - config: access.token.claim: true claim.name: "family_name" id.token.claim: true jsonType.label: String user.attribute: lastName userinfo.token.claim: true consentRequired: true consentText: "${familyName}" name: family name protocol: openid-connect protocolMapper: oidc-usermodel-property-mapper - config: attribute.name: Role attribute.nameformat: Basic single: false consentRequired: false name: role list protocol: saml protocolMapper: saml-role-list-mapper attributes: saml.authnstatement: true saml.client.signature: true saml.force.post.binding: true saml.server.signature: true saml.signature.algorithm: RSA_SHA256 saml.signing.certificate: CERTIFICATEHERE saml.signing.private.key: PRIVATEKEYHERE saml_force_name_id_format: false saml_name_id_format: username saml_signature_canonicalization_method: "http://www.w3.org/2001/10/xml-exc-c14n#" user.info.response.signature.alg: RS256 request.object.signature.alg: RS256 use.jwks.url: true jwks.url: JWKS_URL_FOR_CLIENT_AUTH_JWT jwt.credential.certificate: JWT_CREDENTIAL_CERTIFICATE_FOR_CLIENT_AUTH delegate_to: localhost .. Facts .. Return values Return Values ------------- Common return values are documented :ref:`here `, the following are the fields unique to this module: .. rst-class:: ansible-option-table .. list-table:: :width: 100% :widths: auto :header-rows: 1 * - Key - Description * - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__return-end_state: .. rst-class:: ansible-option-title **end_state** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`dictionary` .. raw:: html
- .. raw:: html
Representation of client after module execution (sample is truncated). .. rst-class:: ansible-option-line :ansible-option-returned-bold:`Returned:` on success .. rst-class:: ansible-option-line .. rst-class:: ansible-option-sample :ansible-option-sample-bold:`Sample:` :ansible-rv-sample-value:`{"adminUrl": "http://www.example.com/admin\_url", "attributes": {"request.object.signature.alg": "RS256"}}` .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__return-existing: .. rst-class:: ansible-option-title **existing** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`dictionary` .. raw:: html
- .. raw:: html
Representation of existing client (sample is truncated). .. rst-class:: ansible-option-line :ansible-option-returned-bold:`Returned:` always .. rst-class:: ansible-option-line .. rst-class:: ansible-option-sample :ansible-option-sample-bold:`Sample:` :ansible-rv-sample-value:`{"adminUrl": "http://www.example.com/admin\_url", "attributes": {"request.object.signature.alg": "RS256"}}` .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__return-msg: .. rst-class:: ansible-option-title **msg** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
Message as to what action was taken. .. rst-class:: ansible-option-line :ansible-option-returned-bold:`Returned:` always .. rst-class:: ansible-option-line .. rst-class:: ansible-option-sample :ansible-option-sample-bold:`Sample:` :ansible-rv-sample-value:`"Client testclient has been updated"` .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.keycloak.keycloak_client_module__return-proposed: .. rst-class:: ansible-option-title **proposed** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`dictionary` .. raw:: html
- .. raw:: html
Representation of proposed client. .. rst-class:: ansible-option-line :ansible-option-returned-bold:`Returned:` always .. rst-class:: ansible-option-line .. rst-class:: ansible-option-sample :ansible-option-sample-bold:`Sample:` :ansible-rv-sample-value:`{"clientId": "test"}` .. raw:: html
.. Status (Presently only deprecated) .. Authors Authors ~~~~~~~ - Eike Frost (@eikef) .. Extra links .. Parsing errors