From 604f94e15b3d01484f5041b1e0a2754d14044cb7 Mon Sep 17 00:00:00 2001 From: Juan Ignacio Fiorentino Date: Mon, 2 Mar 2015 17:51:35 -0300 Subject: [PATCH 1/2] Update Docs. --- doc.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/doc.md b/doc.md index 546bfa1..5c5e55b 100644 --- a/doc.md +++ b/doc.md @@ -75,10 +75,12 @@ REQUIRED. The OP server url. For example `http://localhost:8000`. ##### LOGIN_URL REQUIRED. Used to log the user in. [Read more in Django docs](https://docs.djangoproject.com/en/1.7/ref/settings/#login-url). + Default is `/accounts/login/`. ##### OIDC_CODE_EXPIRE OPTIONAL. Expressed in seconds. + Default is `60*10`. ##### OIDC_EXTRA_SCOPE_CLAIMS @@ -126,11 +128,15 @@ If a field is empty or ``None`` will be cleaned from the response. ##### OIDC_IDTOKEN_EXPIRE OPTIONAL. Expressed in seconds. + Default is `60*10`. ##### 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 a function that receives both `user` and `client` objects. Default is: + +Is just a function that receives both `user` and `client` objects, returns a string. + +Default is: ```python def default_sub_generator(user, client): @@ -139,6 +145,7 @@ def default_sub_generator(user, client): ##### OIDC_TOKEN_EXPIRE OPTIONAL. Token object expiration after been created. Expressed in seconds. + Default is `60*60`. ## Users And Clients From 84ad3cae27b0e25f1bc792eda5dd71fadb8be3c7 Mon Sep 17 00:00:00 2001 From: Juan Ignacio Fiorentino Date: Tue, 3 Mar 2015 12:30:11 -0300 Subject: [PATCH 2/2] Update Docs. --- doc.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc.md b/doc.md index 5c5e55b..5f0b018 100644 --- a/doc.md +++ b/doc.md @@ -1,3 +1,5 @@ +![OpenID Connect](http://wiki.openid.net/f/openid-logo-wordmark.png) + # Welcome to the Docs! Django OIDC Provider can help you providing out of the box all the endpoints, data and logic needed to add OpenID Connect capabilities to your Django projects. @@ -90,7 +92,7 @@ OpenID Connect Clients will use scope values to specify what access privileges a [Here](http://openid.net/specs/openid-connect-core-1_0.html#ScopeClaims) you have the standard scopes defined by the protocol. -Check out an example: +Check out an example of how to implement it: ```python from oidc_provider.lib.claims import AbstractScopeClaims