Help Center/ Koo Command Line Interface/ FAQs/ Authentication/ Authentication Mode Priority
Updated on 2023-10-16 GMT+08:00

Authentication Mode Priority

During command parsing, KooCLI performs authentication for API calling according to the following authentication mode priority:

  1. AK/SK authentication in non-configuration mode
    1. Access key (permanent AK/SK, that is, cli-access-key and cli-secret-key) or temporary security credentials (temporary AK/SK and SecurityToken, that is, cli-access-key, cli-secret-key, and cli-security-token)
  2. Profile specified in the command or the default profile
  3. Cloud service agency (applicable only when KooCLI is used on an ECS)

If an exception occurs during authentication mode parsing, authentication modes with a lower priority will not be used.