Authentication Management Module
Methods
-
<static> call(config, flush, next) → {Promise.<module:client~ClientConfig>}
-
Authenticate and save the new oAuth token
Authenticate with the Kubernetes deployment's oAuth server. The
token
property of the givenClientConfig
is updated to match the new token.Parameters:
Name Type Argument Default Description config
module:client~ClientConfig Client configuration to update
flush
boolean <optional>
false Delete the previous token if it already exists
next
function <optional>
Node.js callback (replaces Promise output)
Throws:
Returns:
ClientConfig
with updatedtoken
property- Type
- Promise.<module:client~ClientConfig>