Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Add new token

Fang-Pen Lin3b5046eadd44
diff --git a/backend/bdd/features/environment.py b/backend/bdd/features/environment.py
index 4a05ecf9e0..c77646358b 100644
--- a/backend/bdd/features/environment.py
+++ b/backend/bdd/features/environment.py
@@ -43,6 +43,15 @@ def bootstrap_infisical(context: Context):
body = resp.json()
org = body["organization"]
user = body["user"]
+ temp_token = body["token"]
+
+ resp = client.post(
+ "/api/v1/auth/token",
+ headers={"Authorization": f"Bearer {temp_token}"},
+ json={},
+ )
+ resp.raise_for_status()
+ body = resp.json()
auth_token = body["token"]
headers = dict(authorization=f"Bearer {auth_token}")