-
- Downloads
Migrate OAuth2 and API clients to database
Also adds a shallow Service model that coexists with the config-defined services to group multiple OAuth2 and API clients together. Clients defined in the config with OAUTH2_CLIENTS and API_CLIENTS_2 are imported by the database migrations. Removes support for complex values for the OAuth2 client group_required option. Only simple group names are supported, not (nested) lists of groups previously interpreted as AND/OR conjunctions. Also removes support for the login_message parameter of OAuth2 clients.
Showing
- README.md 11 additions, 0 deletionsREADME.md
- check_migrations.py 8 additions, 4 deletionscheck_migrations.py
- tests/test_api.py 22 additions, 22 deletionstests/test_api.py
- tests/test_oauth2.py 19 additions, 35 deletionstests/test_oauth2.py
- tests/test_services.py 5 additions, 5 deletionstests/test_services.py
- tests/test_session.py 4 additions, 5 deletionstests/test_session.py
- tests/utils.py 4 additions, 0 deletionstests/utils.py
- uffd/__init__.py 3 additions, 3 deletionsuffd/__init__.py
- uffd/api/models.py 26 additions, 0 deletionsuffd/api/models.py
- uffd/api/views.py 19 additions, 15 deletionsuffd/api/views.py
- uffd/default_config.cfg 0 additions, 16 deletionsuffd/default_config.cfg
- uffd/migrations/versions/b9d3f7dac9db_move_api_and_oauth2_clients_to_db.py 309 additions, 0 deletions...ersions/b9d3f7dac9db_move_api_and_oauth2_clients_to_db.py
- uffd/oauth2/models.py 47 additions, 50 deletionsuffd/oauth2/models.py
- uffd/oauth2/views.py 21 additions, 20 deletionsuffd/oauth2/views.py
- uffd/selfservice/templates/selfservice/self.html 1 addition, 1 deletionuffd/selfservice/templates/selfservice/self.html
- uffd/service/__init__.py 0 additions, 0 deletionsuffd/service/__init__.py
- uffd/service/models.py 32 additions, 25 deletionsuffd/service/models.py
- uffd/service/templates/service/api.html 51 additions, 0 deletionsuffd/service/templates/service/api.html
- uffd/service/templates/service/index.html 31 additions, 0 deletionsuffd/service/templates/service/index.html
- uffd/service/templates/service/oauth2.html 55 additions, 0 deletionsuffd/service/templates/service/oauth2.html
Loading
Please register or sign in to comment