Jump to >


An authentication backend for HTTP Basic Auth.

class WebAPIBasicAuthBackend[source]

Bases: djblets.webapi.auth.backends.base.WebAPIAuthBackend

Handles HTTP Basic Authentication for the web API.

www_auth_scheme = 'Basic realm="Web API"'[source]

The auth scheme used in the WWW-Authenticate header.


Return credentials provided in the request.

This returns a dictionary of all credentials necessary for this auth backend. By default, this expects username and password, though more specialized auth backends may provide other information. These credentials will be passed to login_with_credentials().

This function must be implemented by the subclass.


request (django.http.HttpRequest) – The HTTP request from the client.


A dictionary of credential information.

Return type


__annotations__ = {}