diff options
author | Victor Näslund <victor@sunet.se> | 2022-11-13 04:12:47 +0100 |
---|---|---|
committer | Victor Näslund <victor@sunet.se> | 2022-11-13 04:12:47 +0100 |
commit | f7a40b9e13d242968db83acaac13660224eb0143 (patch) | |
tree | d8f0cdf5d93cc1aebc83343aea6615bc2ee9bc55 /do-as | |
parent | 8baecf339e8061160bee519e87ffe837d1525c18 (diff) |
new direction
Diffstat (limited to 'do-as')
-rwxr-xr-x | do-as | 17 |
1 files changed, 0 insertions, 17 deletions
@@ -1,17 +0,0 @@ -#!/usr/bin/env bash - -# Usage: -# ./do-as <username> <last part of URL> [<any additional curl args>] -# Example: -# ./do-as user1 get -# ./do-as user3 delete/1642091653617 -X DELETE - -set -e - -USER=$1 -CMD=$2 -shift -shift - -JWT=$(curl http://localhost:8000/api/v1.0/auth -X POST -p -u "$USER:pwd" | jq -r .access_token) -curl -H "Authorization: Bearer $JWT" https://localhost:1443/sc/v0/$CMD "$@" |