Package codes.grow.packages.vault
Interface LoginContext
public interface LoginContext
What an
AuthMethod can do during a login (no client token is sent).-
Method Summary
Modifier and TypeMethodDescriptionLooks up a token (auth/token/lookup-selfwith that token).Posts a login request; 400/401/403 raiseAuthenticationException.
-
Method Details
-
post
Posts a login request; 400/401/403 raiseAuthenticationException.- Parameters:
path- path below/v1/, already encoded (e.g.auth/approle/login)body- JSON bodyoperation- operation name for errors- Returns:
- a future with the
authblock
-
lookup
Looks up a token (auth/token/lookup-selfwith that token).- Parameters:
token- the token- Returns:
- a future with the token properties
-