Skip to content

Commit

Permalink
📝[#114] add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Coperh committed Jul 26, 2024
1 parent 1b37fe3 commit c60c2e3
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ Changelog
0.20.0 (????)
=============

New Features:

* Add optional support for ``django setup configuration``


0.19.0 (2024-07-02)
Expand Down
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Using ``email`` as the unique identifier is not recommended, as mentioned in the

quickstart
customizing
setup_configuration
reference
architecture
changelog
Expand Down
6 changes: 6 additions & 0 deletions docs/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ This will also install the following packages:
- ``django-solo``
- ``django-jsonform``

You can optionally install ``django-setup-configuration`` support with:

.. code-block:: bash
pip install mozilla-django-oidc-db[setupconfig]
Django settings
---------------

Expand Down
57 changes: 57 additions & 0 deletions docs/setup_configuration.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
==========================
Django Setup Configuration
==========================

There is optional support for ``django-setup-configuration`` that must be installed with

.. code-block:: bash
pip install mozilla-django-oidc-db[setupconfig]
You must define the required django settings mentioned below and and put the ``AdminOIDCConfigurationStep``
in your django-setup-configuration steps:

.. code-block:: python
SETUP_CONFIGURATION_STEPS = [
...
"mozilla_django_oidc_db.setupconfig.bootstrap.auth.AdminOIDCConfigurationStep",
...
]
Environment Variables
===============================

Required
--------

* ``ADMIN_OIDC_OIDC_RP_CLIENT_ID``
* ``ADMIN_OIDC_OIDC_RP_CLIENT_SECRET``


Optional
--------


* ``ADMIN_OIDC_OIDC_RP_SCOPES_LIST``
* ``ADMIN_OIDC_OIDC_RP_SIGN_ALGO``
* ``ADMIN_OIDC_OIDC_RP_IDP_SIGN_KEY``
* ``ADMIN_OIDC_OIDC_OP_DISCOVERY_ENDPOINT``
* ``ADMIN_OIDC_OIDC_OP_JWKS_ENDPOINT``
* ``ADMIN_OIDC_OIDC_OP_AUTHORIZATION_ENDPOINT``
* ``ADMIN_OIDC_OIDC_OP_TOKEN_ENDPOINT``
* ``ADMIN_OIDC_OIDC_OP_USER_ENDPOINT``
* ``ADMIN_OIDC_USERNAME_CLAIM``
* ``ADMIN_OIDC_GROUPS_CLAIM``
* ``ADMIN_OIDC_CLAIM_MAPPING``
* ``ADMIN_OIDC_SYNC_GROUPS``
* ``ADMIN_OIDC_SYNC_GROUPS_GLOB_PATTERN``
* ``ADMIN_OIDC_DEFAULT_GROUPS``
* ``ADMIN_OIDC_MAKE_USERS_STAFF``
* ``ADMIN_OIDC_SUPERUSER_GROUP_NAMES``
* ``ADMIN_OIDC_OIDC_USE_NONCE``
* ``ADMIN_OIDC_OIDC_NONCE_SIZE``
* ``ADMIN_OIDC_OIDC_STATE_SIZE``
* ``ADMIN_OIDC_OIDC_EXEMPT_URLS``
* ``ADMIN_OIDC_USERINFO_CLAIMS_SOURCE``
1 change: 0 additions & 1 deletion mozilla_django_oidc_db/setupconfig/bootstrap/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ class AdminOIDCConfigurationStep(BaseConfigurationStep):
"ADMIN_OIDC_OIDC_USE_NONCE",
"ADMIN_OIDC_OIDC_NONCE_SIZE",
"ADMIN_OIDC_OIDC_STATE_SIZE",
"ADMIN_OIDC_OIDC_EXEMPT_URLS",
"ADMIN_OIDC_USERINFO_CLAIMS_SOURCE",
]
enable_setting = "ADMIN_OIDC_CONFIG_ENABLE"
Expand Down

0 comments on commit c60c2e3

Please sign in to comment.