Skip to content

get_token#

Collection Note

This module is part of the nokia.eda_utils_v1 collection. To install the collection, use:

ansible-galaxy collection install nokia.eda_utils_v1
Added in version 1.0.0.

Synopsis#

  • The module retrieves the OAuth token from Keycloak for the provided client id and client secret.

Parameters#

Parameter Defaults / Choices Comments
baseUrl
str
required
EDA API URL including the schema and port (if non standard for the provided schema). Example - https://try.eda.demo:9443.
caPath
str
required
A path to the PEM-encoded CA certificate to use for TLS verification.
clientId
str
required
The identifier for the client requesting the token.
clientSecret
str
required
The secret for the client requesting the token.
keycloakAdminClientId
str
required
The client ID for the Keycloak admin user.
keycloakAdminPassword
str
required
The password for the Keycloak admin user.
keycloakAdminUsername
str
required
The username for the Keycloak admin user.
keycloakMasterRealm
str
required
The realm for the Keycloak admin user.
keycloakUrl
str
required
The URL for the Keycloak server.
password
str
required
The password for the client requesting the token.
realm
str
required
The realm for the Keycloak EDA client.
tlsSkipVerify
bool
required
A flag to control the TLS verification of the session.
username
str
required
The username for the client requesting the token.

Authors#