Class UniversalAuth

java.lang.Object
codes.grow.packages.infisical.UniversalAuth
All Implemented Interfaces:
Authenticator

public final class UniversalAuth extends Object implements Authenticator
Logs a machine identity in with a client id and secret (POST /api/v1/auth/universal-auth/login). The client's token manager renews tokens at 80 % of their lifetime and logs in again when renewal is no longer possible.

Infisical locks a Universal Auth identity after repeated failed logins (default 3 failures, 300 s, during which even the right secret fails); the client never retries a rejected login.

  • Constructor Details

    • UniversalAuth

      public UniversalAuth(String clientId, String clientSecret)
      Creates the method.
      Parameters:
      clientId - Universal Auth client id
      clientSecret - Universal Auth client secret
    • UniversalAuth

      public UniversalAuth(String clientId, Secret clientSecret, String organizationSlug)
      Creates the method.
      Parameters:
      clientId - Universal Auth client id
      clientSecret - Universal Auth client secret
      organizationSlug - sub-organization slug, may be null
  • Method Details