A small microservice to get a token and place it into a SESAM instance every X seconds.
{
"_id": "token-auth-source",
"type": "system:microservice",
"docker": {
"environment": {
"user": "theUsername",
"password": "thePassword",
"url": "http://token_url.com",
"node_url": "http://some_url:9042",
"token_name": "the_token_name_needed",
"env_var_key": "environment_variable_name_for_token",
"add_to_secret" : "True" (adds to env var if false),
# optional values below
"sesam_token": "your_jwt_token"
"use_header": "False",
"verify_ssl": "False" (verfy ssl to node. Defaults to true),
"use_basic_auth": "True (Defaults to false)",
"data_payload": "grant_type=password;client_id=vol;client_secret=someSecret12445;username=theUsername;password=thePassword",
"update_interval": "86400"
},
"image": "sesamcommunity/token-auth-source:latest",
"port": 5000
}
}
If use_header is set to false you will need to supply data_payload config.
The user and password config will then be redundant.