Skip to content

Commit 1f9bf3b

Browse files
authored
Merge pull request #22 from makinacorpus/update_doc_2
Fix broken documentation links
2 parents 35d0063 + b07f812 commit 1f9bf3b

File tree

6 files changed

+23
-11
lines changed

6 files changed

+23
-11
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ If you are not satisfied with the default configuration, take a look at the cook
2828

2929
## Features
3030

31-
- Easy configuration through premade [`Provider`](https://django-pyoidc.readthedocs.io/latest/reference.html#providers) classes.
31+
- Easy configuration through premade `Provider` classes (see the list [here](https://django-pyoidc.readthedocs.io/latest/reference.html#providers)
3232
- Authenticate users from multiple providers
3333
- Bearer authentication support for [django-rest-framework](https://www.django-rest-framework.org/) integration (**single provider**)
3434
- Easy integration with the [Django permission system](https://django-pyoidc.readthedocs.io/latest/how-to.html#use-the-django-permission-system-with-oidc)
3535
- Highly customizable design that should suit most needs
3636
- Support back-channel logout
37-
- Support service accounts (accounts for machine-to-machine uses)
37+
- Support service accounts (accounts for machine-to-machine authentication)
3838
- Sane and secure defaults settings
3939

4040
## Roadmap

docs/explanation.rst

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.. _expl_new_oidc:
2+
13
Why make a new OIDC library ?
24
=============================
35

@@ -16,7 +18,8 @@ Here are our criteria :
1618
`django-allauth <https://github.com/pennersr/django-allauth/>`_
1719
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1820

19-
**Todo**
21+
This library OIDC implementation is based on the python package ``oic`` which we believe should not
22+
be used for OIDC usages.
2023

2124
`django-auth-oidc <https://gitlab.com/aiakos/django-auth-oidc>`_
2225
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -302,6 +305,8 @@ Note: if your Django acts as an OIDC SSO server for other applications, receivin
302305
containing an iframe with front channel logouts links for all the client applications of your Django. In this library we consider the
303306
Django website to be only an OIDC client (not server) and we did not implement this cascading front channel logout specification.
304307

308+
.. _expl_cache:
309+
305310
About caching
306311
=============
307312

docs/how-to.rst

+3-5
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Here is how it looks if we extend the configuration made in :ref:`Configure the
5555
},
5656
5757
58-
See :ref:`Hook settings` for more information on the function path syntax.
58+
See :ref:`Hook settings <settings_hook>` for more information on the function path syntax.
5959
6060
You should now see a message on login/logout ! 🎉
6161
@@ -136,7 +136,7 @@ group named *admin*. If you are not familiar with the claims available in your t
136136
137137
To have this function called instead of the default one, you need to modify your settings so that :ref:`hook_get_user` points to the function that we just wrote.
138138
139-
The value of this setting should be : ``<my_app>.oidc:login_function`` (see :ref:`Hook settings` for more information on this syntax).
139+
The value of this setting should be : ``<my_app>.oidc:login_function`` (see :ref:`Hook settings <settings_hook>` for more information on this syntax).
140140
141141
If you configured your settings manually (without using the providers system), you can add the key directly.
142142
@@ -267,11 +267,9 @@ TODO: RedirectDemo now exists, where do I connect it?
267267
Use multiple identity providers
268268
===============================
269269
270-
**TODO**
271-
272270
This library natively supports multiples identity providers.
273271
274-
You already have to specify a provider name when you configure your settings (either automatically by using a provider, or :ref:`manually <Providers settings>`).
272+
You already have to specify a provider name when you configure your settings (either automatically by using a provider, or :ref:`manually <provider-class-setting>`).
275273
276274
In a multi-provider setup, the settings look like this :
277275

docs/reference.rst

+4-1
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,11 @@ Providers classes allows the final user to configure their project without havin
4242
Each provider implements the configuration logic and should be used using the :ref:`provider-class-setting` setting.
4343

4444
.. tip::
45+
Read :ref:`the tutorial <tuto_settings>` to learn how to use provider class !
4546

46-
All the named arguments of __init__() can be set by configuring a setting **with the same**.
47+
.. tip::
48+
49+
All the named arguments of __init__() can be set by configuring a setting **with the same name**.
4750

4851
Provider list
4952
^^^^^^^^^^^^^

docs/settings.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,9 @@ cache_django_backend
163163

164164
This setting configures the cache backend that is used to store OIDC sessions details. It should be
165165
the name of a cache defined in the ``CACHES` django settings.
166-
You can read more about *Cache Management* :ref:`here <Cache Management>`.
166+
You can read more about *Cache Management* :ref:`here <expl_cache>`.
167+
168+
.. _settings_hook:
167169
168170
Hook
169171
====

docs/tutorial.rst

+5-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ Configure a cache backend
113113
*************************
114114

115115
**You must have a cache backend** for this library to work ! The OIDC protocol is very statefull and we use Django cache system to store data.
116-
If you want to understand why, you can read the :ref:`Cache Management` page.
116+
If you want to understand why, you can read the :ref:`Cache management <expl_cache>` page.
117117

118118
For the sake of this tutorial, you can use this cache management snippet (it should be pasted in your ``settings.py``) :
119119

@@ -129,6 +129,8 @@ For the sake of this tutorial, you can use this cache management snippet (it sho
129129
.. warning::
130130
Do not use those settings in production ! Go read the `django documentation <https://docs.djangoproject.com/en/stable/topics/cache/#setting-up-the-cache>`_ for more details.
131131

132+
.. _tuto_settings:
133+
132134
Configure the library
133135
*********************
134136

@@ -216,6 +218,8 @@ This will create 4 views in your URL configuration. They all have a name that de
216218
217219
You should now be able to use the view names from this library to redirect the user to a login/logout page.
218220
221+
.. _drf_tuto:
222+
219223
Configuring django_rest_framework
220224
=================================
221225

0 commit comments

Comments
 (0)