Skip to main content
Version: 2.0.x (deprecated)

basicauth


Support for HTTP basicauth.

Backend: pants.core

Config section: [basicauth]

Basic options

None

Advanced options

None

Deprecated options

providers

--basicauth-providers="{'key1': val1, 'key2': val2, ...}"
PANTS_BASICAUTH_PROVIDERS
default: {}

Map from provider name to config dict. This dict contains the following items: {provider_name: <url of endpoint that accepts basic auth and sets a session cookie>}. For example, {'prod': 'https://app.pantsbuild.org/auth'}.

allow_insecure_urls

--[no-]basicauth-allow-insecure-urls
PANTS_BASICAUTH_ALLOW_INSECURE_URLS
default: False

Allow auth against non-HTTPS urls. Must only be set when testing!