Merge "Make X-Subject-Token search case unsensitive"
This commit is contained in:
commit
0459252cf9
@ -68,7 +68,7 @@ EOF
|
|||||||
content_type='Content-Type: application/json'
|
content_type='Content-Type: application/json'
|
||||||
url="$AUTH_URL/auth/tokens"
|
url="$AUTH_URL/auth/tokens"
|
||||||
USER_TOKEN=`curl $VERIFY_CA -s -i -X POST -H "$content_type" -d "$auth_json" $url \
|
USER_TOKEN=`curl $VERIFY_CA -s -i -X POST -H "$content_type" -d "$auth_json" $url \
|
||||||
| grep X-Subject-Token | awk '{print $2}' | tr -d '[[:space:]]'`
|
| grep -i X-Subject-Token | awk '{print $2}' | tr -d '[[:space:]]'`
|
||||||
|
|
||||||
# Get CA certificate for this cluster
|
# Get CA certificate for this cluster
|
||||||
curl $VERIFY_CA -X GET \
|
curl $VERIFY_CA -X GET \
|
||||||
|
@ -106,7 +106,7 @@ EOF
|
|||||||
content_type='Content-Type: application/json'
|
content_type='Content-Type: application/json'
|
||||||
url="$AUTH_URL/auth/tokens"
|
url="$AUTH_URL/auth/tokens"
|
||||||
USER_TOKEN=`curl $VERIFY_CA -s -i -X POST -H "$content_type" -d "$auth_json" $url \
|
USER_TOKEN=`curl $VERIFY_CA -s -i -X POST -H "$content_type" -d "$auth_json" $url \
|
||||||
| grep X-Subject-Token | awk '{print $2}' | tr -d '[[:space:]]'`
|
| grep -i X-Subject-Token | awk '{print $2}' | tr -d '[[:space:]]'`
|
||||||
|
|
||||||
# Get CA certificate for this cluster
|
# Get CA certificate for this cluster
|
||||||
curl $VERIFY_CA -X GET \
|
curl $VERIFY_CA -X GET \
|
||||||
|
Loading…
Reference in New Issue
Block a user