Skip to main content

property BasicAuthenticationSecurity.credentials : MutableMapping[str, str]

Mapping from username to password. Use individual_roles to grant roles to the users.

Example

Letting a user authenticate through Basic Authentication requires two steps:
  • Granting the required role:
  • Configuring credentials:
The password can be changed:
But, for security reasons, it cannot be retrieved. Accessing it will return a redacted string:
Revoking access:
Cleaning the individual roles to not leave unused keys: