craftr api set auth basic

Set the API default auth to HTTP basic auth. Supports {{variables}}; the header is encoded once they are resolved.

Usage

craftr api set auth basic --username <username> --password <password> [--api <api>]

Flags

FlagDescription
--usernamerequiredUsername. Supports {{variables}}.
--passwordrequiredPassword. Supports {{variables}}; prefer a secret variable.
--api-aAPI slug.

Examples

craftr api set auth basic --username "{{basicUsername}}" --password "{{basicPassword}}" --api petstore-api

See also