Skip to main content
Version: 2.0 (deprecated)

basicauth


Support for HTTP basicauth.

Backend: ``

Config section: [basicauth]

Basic options

None

Advanced options

None

Deprecated options

allow_insecure_urls

--[no-]basicauth-allow-insecure-urls
PANTS_BASICAUTH_ALLOW_INSECURE_URLS
pants.toml
[basicauth]
allow_insecure_urls = <bool>
default: False
Deprecated, will be removed in version: 2.1.0.dev0.
The option `--basicauth-allow-insecure-urls` does not do anything and the `[basicauth]` subsystem will be removed.

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

providers

--basicauth-providers="{'key1': val1, 'key2': val2, ...}"
PANTS_BASICAUTH_PROVIDERS
pants.toml
[basicauth.providers]
key1 = val1
key2 = val2
...
default: {}
Deprecated, will be removed in version: 2.1.0.dev0.
The option `--basicauth-provides` does not do anything and the `[basicauth]` subsystem will be removed.

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'}.

None