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
tokenproperty of the givenClientConfigis updated to match the new token.Parameters:
Name Type Argument Default Description configmodule:client~ClientConfig Client configuration to update
flushboolean <optional>
false Delete the previous token if it already exists
nextfunction <optional>
Node.js callback (replaces Promise output)
Throws:
Returns:
ClientConfigwith updatedtokenproperty- Type
- Promise.<module:client~ClientConfig>