-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨[maykinmedia/open-api-framework#23] add Mozilla OIDC setup configura…
…iton
- Loading branch information
Showing
7 changed files
with
167 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
oidc_db_config_enable: true | ||
oidc_db_config_admin_auth: | ||
items: | ||
- identifier: admin-oidc | ||
oidc_rp_client_id: client-id | ||
oidc_rp_client_secret: secret | ||
endpoint_config: | ||
oidc_op_authorization_endpoint: https://example.com/realms/test/protocol/openid-connect/auth | ||
oidc_op_token_endpoint: https://example.com/realms/test/protocol/openid-connect/token | ||
oidc_op_user_endpoint: https://example.com/realms/test/protocol/openid-connect/userinfo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
.. _installation_configuration_cli: | ||
|
||
===================================== | ||
Referentielijsten configuration (CLI) | ||
===================================== | ||
|
||
After deploying Referentielijsten, it needs to be configured to be fully functional. | ||
The django management command ``setup_configuration`` assist with this configuration. | ||
You can get the full command documentation with: | ||
|
||
.. code-block:: bash | ||
python ./src/manage.py setup_configuration --help | ||
.. warning:: This command is declarative - if configuration is manually changed after | ||
running the command and you then run the exact same command again, the manual | ||
changes will be reverted. | ||
|
||
Preparation | ||
=========== | ||
|
||
The command executes the list of pluggable configuration steps, and each step | ||
requires specific configuration information, that should be prepared. | ||
Here is the description of all available configuration steps and the configuration | ||
format, used by each step. | ||
|
||
Token configuration | ||
---------------------- | ||
|
||
Create a (single) YAML configuration file with your settings: | ||
|
||
|
||
Mozilla-django-oidc-db | ||
---------------------- | ||
|
||
Create or update the (single) YAML configuration file with your settings: | ||
|
||
.. code-block:: yaml | ||
... | ||
oidc_db_config_enable: true | ||
oidc_db_config_admin_auth: | ||
items: | ||
- identifier: admin-oidc | ||
oidc_rp_client_id: client-id | ||
oidc_rp_client_secret: secret | ||
endpoint_config: | ||
oidc_op_discovery_endpoint: https://keycloak.local/protocol/openid-connect/ | ||
... | ||
More details about configuring mozilla-django-oidc-db through ``setup_configuration`` | ||
can be found at the _`documentation`: https://mozilla-django-oidc-db.readthedocs.io/en/latest/setup_configuration.html. | ||
|
||
Execution | ||
========= | ||
|
||
Referentielijsten configuration | ||
------------------------------- | ||
|
||
With the full command invocation, everything is configured at once. Each configuration step | ||
is idempotent, so any manual changes made via the admin interface will be updated if the command | ||
is run afterwards. | ||
|
||
.. code-block:: bash | ||
python ./src/manage.py setup_configuration --yaml-file /path/to/config.yaml | ||
.. note:: Due to a cache-bug in the underlying framework, you need to restart all | ||
replicas for part of this change to take effect everywhere. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
open-api-framework | ||
|
||
django-import-export[xlsx] | ||
|
||
mozilla-django-oidc-db[setup_configuration] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters