Class JwtAuth

java.lang.Object
codes.grow.packages.vault.JwtAuth
All Implemented Interfaces:
AuthMethod

public final class JwtAuth extends Object implements AuthMethod
JWT/OIDC login with a JWT: POST auth/<mount>/login {role, jwt}.
  • Constructor Details

    • JwtAuth

      public JwtAuth(String role, String jwt)
      Creates the method on mount jwt.
      Parameters:
      role - role name
      jwt - the JWT
    • JwtAuth

      public JwtAuth(String role, Secret jwt, String mount)
      Creates the method.
      Parameters:
      role - role name
      jwt - the JWT
      mount - auth mount path
      Throws:
      ConfigException - when the JWT is empty
  • Method Details