fix auth
diff --git a/xos/openstack/get_token.sh b/xos/openstack/get_token.sh
index f8012fb..849f333 100755
--- a/xos/openstack/get_token.sh
+++ b/xos/openstack/get_token.sh
@@ -1,4 +1,23 @@
-curl --insecure -X POST $ENDPOINT/v2.0/tokens \
+curl --insecure -X POST $ENDPOINT/auth/tokens \
   -H "Content-type: application/json" \
-  -d '{"auth": {"tenantName": "'$TENANT'", "passwordCredentials":{"username": "'$USERNAME'", "password": "'$PASSWORD'"}}}' \
-  | python -c 'import json,sys;obj=json.load(sys.stdin);print obj["access"]["token"]["id"];'
+  -d '
+{ "auth": {
+    "identity": {
+      "methods": ["password"],
+      "password": {
+        "user": {
+          "name": "'$USERNAME'",
+          "domain": { "id": "'$DOMAIN'" },
+          "password": "'$PASSWORD'"
+        }
+      }
+    },
+    "scope": {
+      "project": {
+        "name": "'$TENANT'",
+        "domain": { "id": "'$DOMAIN'" }
+      }
+    }
+  }
+}' \
+  | grep X-Subject-Token | awk '{print $2;}'