tokenAuthTest.sh
1 |
#!/bin/bash |
---|---|
2 |
|
3 |
# Token generated on search-dev-2 ; Note: Your identification code expires on 1/5/2016 at 7:14:07 AM |
4 |
# works with cn-dev-2 /diag/subject when not expired. |
5 |
token="eyJhbGciOiJSUzI1NiJ9.eyJjb25zdW1lcktleSI6InRoZWNvbnN1bWVya2V5IiwiaXNzdWVkQXQiOiIyMDE2LTAxLTA0VDIxOjE0OjIzLjMzMyswMDowMCIsInVzZXJJZCI6IkNOPVBldGVyIFNsYXVnaHRlciBBMzQ0NTYsTz1Hb29nbGUsQz1VUyxEQz1jaWxvZ29uLERDPW9yZyIsImZ1bGxOYW1lIjoiUGV0ZXJTbGF1Z2h0ZXIiLCJ0dGwiOjY0ODAwMDAwfQ.E4k07haTwH5sPjiKtB_IwLmBf5w-z7W71pl8wGFvLd995hIdl3slmSK5iEtu9Wi1aS0B8EjCquaIIUoufQlLPHQCXpC2NmfKPd7AnJEIp9OfTCZkihvoAJLya5Wn4kWrDGXBdcvARCndL6Hz0akFG4exbchE4t2r8MvzYKiN6tSAxsYHIEl_T9lx2193U5vnwccemurmy6H0pU7jY0rK3244RM55h8XTQcw98cC_J0BlvgZNEFoijkvDlH-wXPedGNKjxTFxl-WRhZPFPRlfAMDXciLeb57VxxNQMKXOMyaa4b4OEXn5obGiEoH7tDv-k-xZmxCr6kmeHW2Vei-GVGASB2vaaB8HO-jx_RCNiG2zyqUIdQPIly7ce-sCUC5WCQPnbgGE-Y9WRbFQsrXCmiVLChKVGH7tX21C9OJLDe00TLzYy3Bfmuj1f0fZlNoEI4pLGHRoU_ZCHCmMu8ubZQiFuMONqpwraeAn5AVhMpBJgxWBHOkLXFXth4ly8L2FPGF3sSpCH1JAUZeGPJIfIbbUyeZeAJePzT63is3Q93X9w6Tl8eEfu0xZxPqf0Goa2BwIsNfPyQ0MyhyNdRW5csYkIZsD6svREA8el-uq-BeBjnt5KgK0No2dM9tk-LB4Sa3dhk39P9dRRx_23Y1qCtggT1WX5hJAKdRI162G2q0" |
6 |
|
7 |
curl -v "https://cn-dev-2.test.dataone.org/cn/v2/diag/subject" \ |
8 |
-H "Authorization: Bearer $token" |