Skip to content

Add django-setup-configuration as optional dependancy for mozilla-django-oidc-db to autoconfigure the Admin OIDC for our components #114

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
alextreme opened this issue Jul 8, 2024 · 4 comments · Fixed by #115
Assignees
Labels
enhancement New feature or request owner: dimpact

Comments

@alextreme
Copy link
Member

Taiga OIP 2607

Hey all, I saw that you added Admin-OIDC support via SetupConfig. It would be great if this can be part of the mozilla-django-oidc-db library as a contrib or optional dep, so we can use it in ALL our products.

Its about this piece of code: https://github.com/maykinmedia/open-inwoner/blob/ab1950d4f71ed85c1819dfcb69f027fba196c763/src/open_inwoner/configurations/bootstrap/auth.py#L198

So the idea is that we have a mozilla-django-oidc-db[setupconfig] (see https://setuptools.pypa.io/en/latest/userguide/dependency_management.html#optional-dependencies ) which ensures django-setup-configuration is installed and that the above AdminOIDCConfigurationSettings bit from OIP is registered when using the setup-configuration management command

@alextreme alextreme added the enhancement New feature or request label Jul 8, 2024
@sergei-maertens
Copy link
Member

Feel free to take a look at https://github.com/maykinmedia/django-digid-eherkenning which has a similar setup with the optional [oidc] dependency group, especially with how tests are organized!

@Coperh Coperh moved this from Todo to In Progress in Data en API fundament Jul 9, 2024
Coperh added a commit that referenced this issue Jul 10, 2024
Coperh added a commit that referenced this issue Jul 10, 2024
Coperh added a commit that referenced this issue Jul 10, 2024
Coperh added a commit that referenced this issue Jul 10, 2024
Coperh added a commit that referenced this issue Jul 26, 2024
Coperh added a commit that referenced this issue Jul 26, 2024
Coperh added a commit that referenced this issue Jul 26, 2024
Coperh added a commit that referenced this issue Jul 30, 2024
Coperh added a commit that referenced this issue Jul 30, 2024
@Coperh Coperh moved this from In Progress to Implemented in Data en API fundament Jul 31, 2024
Coperh added a commit that referenced this issue Aug 2, 2024
@Coperh Coperh moved this from Implemented to In Progress in Data en API fundament Aug 6, 2024
Coperh added a commit that referenced this issue Aug 14, 2024
Coperh added a commit that referenced this issue Nov 22, 2024
* Add setup configuraiton model and step
* Add OIDCSetupConfigForm with only required fields
* Create common create_missing_groups util
Coperh added a commit that referenced this issue Nov 22, 2024
Coperh added a commit that referenced this issue Nov 22, 2024
Coperh added a commit that referenced this issue Nov 25, 2024
Coperh added a commit that referenced this issue Nov 25, 2024
Coperh added a commit that referenced this issue Nov 29, 2024
Coperh added a commit that referenced this issue Nov 29, 2024
* Pin django-setup-configuration >= 0.4.0
* Use Pydantic model defaults, remove defaults from step
* Remove now unneeded OIDCSetupConfigForm
* Set non-default values for test_configure_use_defaults
* Update Documentation
Coperh added a commit that referenced this issue Nov 29, 2024
* Pin django-setup-configuration >= 0.4.0
* Use Pydantic model defaults, remove defaults from step
* Remove now unneeded OIDCSetupConfigForm
* Set non-default values for test_configure_use_defaults
* Update Documentation
Coperh added a commit that referenced this issue Nov 29, 2024
* Set non default values in model in test_configure_use_defaults
* Remove model fixtures in favour of file yml fixtures
* Move from build_step_config_from_sources in fixture to execute_single_step in test
* Remove model validaiton tests
Coperh added a commit that referenced this issue Dec 2, 2024
@sjoerdie sjoerdie removed the blocked label Dec 2, 2024
Coperh added a commit that referenced this issue Dec 2, 2024
Coperh added a commit that referenced this issue Dec 2, 2024
Coperh added a commit that referenced this issue Dec 2, 2024
* Explicitly use model values
* Rename create_missing_groups to get_groups_by_name
* Move sync_groups condition to get_groups_by_name
* Fix sync_group doing nothing in step
* Test sync_group & sync_groups_glob_pattern
* Test idempotent and overwrite
Coperh added a commit that referenced this issue Dec 2, 2024
* Explicitly use model values
* Rename create_missing_groups to get_groups_by_name
* Move sync_groups condition to get_groups_by_name
* Fix sync_group doing nothing in step
* Test sync_group & sync_groups_glob_pattern
* Test idempotent and overwrite
@github-project-automation github-project-automation bot moved this from Implemented to Done in Data en API fundament Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request owner: dimpact
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

7 participants