Created
March 19, 2018 08:41
-
-
Save maximegaillard/e745e10f372eb40039de06e823035c01 to your computer and use it in GitHub Desktop.
WIP Orthanc authz setup script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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