Skip to content

Instantly share code, notes, and snippets.

@maximegaillard
Created March 19, 2018 08:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maximegaillard/e745e10f372eb40039de06e823035c01 to your computer and use it in GitHub Desktop.
Save maximegaillard/e745e10f372eb40039de06e823035c01 to your computer and use it in GitHub Desktop.
WIP Orthanc authz setup script
name=AUTHZ
conf=authorization
settings=(WEBSERVICE TOKEN_HTTP_HEADERS TOKEN_HTTP_COOKIES)
plugin=libOrthancAuthorization
default=true
function genconf {
cat <<-EOF >"$1"
{
"Authorization": {
"WebService": "$WEBSERVICE",
"TokenHttpHeaders": [ "${TOKEN_HTTP_HEADERS:-Authorization-Token}", "${TOKEN_HTTP_COOKIES:-Authorization-Cookie}" ]
}
}
EOF
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment