Skip to content
Snippets Groups Projects
Commit b06faa9d authored by Antoine Lambert's avatar Antoine Lambert Committed by Antoine Lambert
Browse files

auth: Add new migration to create webapp permissions in database

Add a new migration file for the swh.web.auth django application enabling to
persist webapp special permissions to database in order to be able to use them
when the webapp relies of the default django authentication backend for login
operations (mirror version of swh-web for instance that does not use Keycloak
for authentication).

The permissions can then be set for a particular user using the django admin
views by a django user having the adequate permissions to modify user accounts.

Some tests were modified as the reset_sequences parameter of django_db pytest
mark cannot be used as it breaks persisted permissions.
parent 68da90cc
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment