Hey gang, I'm looking for the endpoint for univers...
# infisical-help
b
Hey gang, I'm looking for the endpoint for universal auth. I tried: https://app.infisical.com/api/v1/auth/universal-auth/login Also: https://us.infisical.com/api/v1/auth/universal-auth/login Ideas?
Copy code
{
  "message": "Route GET:/api/v1/auth/universal-auth/login not found",
  "error": "Not Found",
  "statusCode": 404
}
m
This is a POST endpoint. It looks like you are going a GET
🥸 1
b
I'm trying the sdk, so not sure why it would be doing a GET for the auth. Will do more debugging on my side. Thx!!!
Copy code
def client_for_env(env: str) -> "InfisicalSDKClient":
    cid, csec = ENV_CLIENTS.get(env, ("",""))
    if not cid or not csec:
        raise RuntimeError(f"Missing INFISICAL_CLIENT_ID/SECRET for {env}.")
    c = InfisicalSDKClient(host=DEFAULT_SITE_URL)
    c.auth.universal_auth.login(client_id=cid, client_secret=csec)
    return c