Learn how to authenticate to Infisical from any platform or environment.
/api/v1/auth/universal-auth/login
endpoint. If successful,
then Infisical returns a short-lived access token that can be used to make authenticated requests to the Infisical API.
To be more specific:
/api/v1/auth/universal-auth/login
endpoint.Creating an identity
2592000
equivalent to 30 days): The lifetime for an acccess token in seconds. This value will be referenced at renewal time.2592000
equivalent to 30 days): The maximum lifetime for an acccess token in seconds. This value will be referenced at renewal time.0
): The maximum number of times that an access token can be used; a value of 0
implies infinite number of uses.0.0.0.0/0
, allowing usage from any network address.0.0.0.0/0
, allowing usage from any network address.0
): If set, the access token becomes a renewable, non-expiring token for the specified period (in seconds). TTL and Max TTL are ignored when this is set. This is ideal for “secret zero” scenarios, where a workload needs to bootstrap itself securely without hard-coded static secrets.Creating a Client Secret
0
): The time-to-live for the Client Secret. By default, the TTL will be set to 0 which implies that the Client Secret will never expire; a value of 0
implies an infinite lifetime.0
): The maximum number of times that the Client Secret can be used together with the Client ID to get back an access token; a value of 0
implies infinite number of uses.Adding an identity to a project
Accessing the Infisical API with the identity
/api/v1/auth/universal-auth/login
endpoint.https://app.infisical.com
https://eu.infisical.com
7200
seconds which can be adjusted in the Universal Auth configuration.If an identity access token expires, it can no longer authenticate with the Infisical API. In this case,
a new access token should be obtained by performing another login operation.3600
for 1 hour).1
) or a short TTL. This ensures that after the initial login, the Client Secret cannot be reused, and any disruption in token renewal will require manual intervention.Why is the Infisical API rejecting my identity credentials?
What is access token renewal and TTL/Max TTL?