From 1d3350a9b33e62c09e0877ed92a9179040a57782 Mon Sep 17 00:00:00 2001 From: Juan Ignacio Fiorentino Date: Thu, 30 Jul 2015 12:11:57 -0300 Subject: [PATCH 1/2] Fix DOC. --- DOC.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DOC.md b/DOC.md index e21f67c..959d76d 100644 --- a/DOC.md +++ b/DOC.md @@ -181,13 +181,13 @@ OPTIONAL. ##### OIDC_IDTOKEN_SUB_GENERATOR OPTIONAL. Subject Identifier. A locally unique and never reassigned identifier within the Issuer for the End-User, which is intended to be consumed by the Client. -Is just a function that receives a `user` object. Returns a unique string for the given user. +Is just a function that receives a `user` object. Returns a unique `string` for the given user. Default is: ```python def default_sub_generator(user): - return user.id + return str(user.id) ``` ##### OIDC_RSA_KEY_FOLDER From 16c8e5997dbcfb03ffe8023c9fab18c24e09543a Mon Sep 17 00:00:00 2001 From: Juan Ignacio Fiorentino Date: Thu, 30 Jul 2015 12:17:49 -0300 Subject: [PATCH 2/2] Improve DOC. --- DOC.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/DOC.md b/DOC.md index 959d76d..375f76b 100644 --- a/DOC.md +++ b/DOC.md @@ -191,7 +191,9 @@ def default_sub_generator(user): ``` ##### OIDC_RSA_KEY_FOLDER -REQUIRED. Path of the folder where `OIDC_RSA_KEY.pem` lives. This RSA key can be easily created using `python manage.py creatersakey` command. +REQUIRED. Path of the folder where `OIDC_RSA_KEY.pem` lives. Used to sign/encrypt `id_token`. The package will automatically generate a public key and expose it in the `jwks_uri` endpoint. + +You can easily create it using `python manage.py creatersakey` command. ##### OIDC_SKIP_CONSENT_ENABLE OPTIONAL. If enabled, the Server will save the user consent given to a specific client, so that user won't be prompted for the same authorization multiple times.