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
#!/bin/sh | |
# You'll need to install the program jq (https://stedolan.github.io/jq/) to extract the sessionid from ICE's JSON output | |
curl -H "Content-Type: application/json" \ | |
-X POST \ | |
-k \ | |
-d "{email: 'Administrator', password: 'Administrator'}" \ | |
https://localhost:8443/rest/accesstoken | \ | |
jq -r '.sessionId' |