Skip to content

Commit

Permalink
Adding time parameter to authorization template.
Browse files Browse the repository at this point in the history
  • Loading branch information
Schpidi committed Oct 7, 2016
1 parent c1e3f35 commit 351809b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion install/ngeo-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ EOF
<?xml version="1.0" encoding="UTF-8"?>
<mapcache>
<auth_method name="cmdlineauth" type="cmd">
<template>/usr/bin/python /usr/bin/request_authorization.py -b http://127.0.0.1:8000/webserver -u :user -l :tileset</template>
<template>/usr/bin/python /usr/bin/request_authorization.py -b http://127.0.0.1:8000/webserver -u :user -l :tileset -t :time</template>
<user_header>$MAPCACHE_USER_HEADER</user_header>
<auth_cache type="memcache">
<expires>1000</expires>
Expand Down
2 changes: 1 addition & 1 deletion jenkins/prepare_instance.sh
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ cat << EOF > "$MAPCACHE_DIR/$MAPCACHE_CONF"
<?xml version="1.0" encoding="UTF-8"?>
<mapcache>
<auth_method name="cmdlineauth" type="cmd">
<template>/usr/bin/python /usr/bin/request_authorization.py -b http://127.0.0.1:8000/authorized -u :user -l :tileset</template>
<template>/usr/bin/python /usr/bin/request_authorization.py -b http://127.0.0.1:8000/authorized -u :user -l :tileset -t :time</template>
<user_header>SP-Person-Identifier</user_header>
<auth_cache type="memcache">
<expires>1000</expires>
Expand Down
2 changes: 1 addition & 1 deletion ngeo-b_autotest
Submodule ngeo-b_autotest updated 1 files
+2 −2 HOWTO
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<mapcache>
<auth_method name="cmdlineauth" type="cmd">
<template>request_authorization.py --layer :tileset --user :user --baseurl http://www.example.com/</template>
<template>request_authorization.py --layer :tileset --user :user -t :time --baseurl http://www.example.com/</template>
<user_header>user</user_header>
<auth_cache type="memcache">
<expires>1000</expires>
Expand Down
2 changes: 1 addition & 1 deletion vagrant/shares/httpd/www_root/cache/mapcache.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<mapcache>
<auth_method name="cmdlineauth" type="cmd">
<template>/usr/bin/python /usr/bin/request_authorization.py -b http://127.0.0.1:8000/authorized -u :user -l :tileset</template>
<template>/usr/bin/python /usr/bin/request_authorization.py -b http://127.0.0.1:8000/authorized -u :user -l :tileset -t :time</template>
<user_header>SP-Person-Identifier</user_header>
<auth_cache type="memcache">
<expires>1000</expires>
Expand Down

0 comments on commit 351809b

Please sign in to comment.