ansible-role-inception/templates/config.js.j2

22 lines
557 B
Django/Jinja

export default { config, exportBackendHeaders };
function exportBackendHeaders(context){
exportVariable("remote_user", context.authn.verified_token.preferred_username)
return context
}
var config = {
"pep-credentials" : "{{ keycloak_auth_credentials_prod }}",
"hosts" : [
{
"host": "{{ inception_project_docker_service_name }}",
"allow-basic-auth" : true,
"audience" : '{{ inception_authz_audience_name }}',
"paths" : [
{
"name" : "inception",
"path" : "^/?.*$",
}
]
}
]
}