add conditional logic for choosing between legacy and jwt tokens

This commit is contained in:
Antonio Calanducci 2024-05-10 12:45:30 +02:00
parent 29ae2314e2
commit fc991a110c
2 changed files with 3 additions and 1 deletions

View File

@ -3,6 +3,7 @@ export default { config };
var config = {
"pep_credentials" : "pep_credentials",
"debug": true,
"legacy": true,
"accounting": {
"scope": "authorized_scope",
"service_name": "docker_stack_name",

View File

@ -21,7 +21,8 @@ http {
js_import pep.js;
# added to bind enforce function
js_set $authorization pep.enforce_legacy;
# it seems it's not used anywhere
# js_set $authorization pep.enforce_legacy;
include /etc/nginx/mime.types;
default_type application/octet-stream;