Package codes.grow.packages.vault
Class JwtAuth
java.lang.Object
codes.grow.packages.vault.JwtAuth
- All Implemented Interfaces:
AuthMethod
JWT/OIDC login with a JWT:
POST auth/<mount>/login {role, jwt}.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlogin(LoginContext context) Performs the login.method()Returns the method name, e.g.toString()
-
Constructor Details
-
JwtAuth
Creates the method on mountjwt.- Parameters:
role- role namejwt- the JWT
-
JwtAuth
Creates the method.- Parameters:
role- role namejwt- the JWTmount- auth mount path- Throws:
ConfigException- when the JWT is empty
-
-
Method Details
-
method
Description copied from interface:AuthMethodReturns the method name, e.g.approle.- Specified by:
methodin interfaceAuthMethod- Returns:
- the name
-
login
Description copied from interface:AuthMethodPerforms the login.- Specified by:
loginin interfaceAuthMethod- Parameters:
context- login helpers of the client- Returns:
- a future with the auth info
-
toString
-