Repository navigation
Authentication configurations
By default actinia uses basic authentication, but you can also disable authentication in the configuration file for the whole actinia API or use OAuth2 e.g. to connect to Keycloak.
By default actinia uses basic authentication. The version and swagger documentation can be requested without authentication:
curl ${ACTINIA_BASE_URL}/api/v3/version
curl ${ACTINIA_BASE_URL}/api/v3/swagger.jsonMost other endpoints require a username and password. For example:
curl -u "user:password" ${ACTINIA_BASE_URL}/api/v3/locationsAuthentication can be disabled for the entire API by setting authentication to False in the API section of the actinia configuration file:
[API]
authentication = FalseAfter disabling authentication, endpoints can be accessed without credentials:
curl ${ACTINIA_BASE_URL}/api/v3/locationsActinia can also verify the Keycloak token. For this a KEYCLOAK section has to be added to the actinia configuration file:
[KEYCLOAK]
config_path = /etc/default/keycloak.json
group_prefix = /actinia-user/The config_path must point to the Keycloak OpenID Connect JSON configuration file for the actinia client.
To access the API with a Keycloak token:
TOKEN=xxx
curl -H 'Accept: application/json' -H "Authorization: Bearer ${TOKEN}" ${ACTINIA_BASE_URL}/api/v3/locations | jqFor an example development setup, see the local Keycloak setup for actinia-core.