Skip to content

Commit

Permalink
bump default lifetime of tokens to 10 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
kratsg committed Nov 14, 2023
1 parent 5025467 commit fc76cdb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eos-krb5-shell2http/generate-token.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ then
exit 0
fi

TOKEN=$((eos token --path "${v_path}" --permission "${PERMISSIONS}") 2>&1)
EXPIRES=$(date -d "+ 10 minutes" +%s)
TOKEN=$((eos token --path "${v_path}" --permission "${PERMISSIONS}" --expires "${EXPIRES}") 2>&1)
if [ $? -ne 0 ]
then
Expand Down

0 comments on commit fc76cdb

Please sign in to comment.