Commit graph

747 commits

Author SHA1 Message Date
Wojciech Bartosiak
baad8246c7 added TOX for Django 1.11 and PYthon 3.6 2017-05-05 05:43:39 +02:00
Wojciech Bartosiak
a829726be8 Merge develop to v0.5.x (#179)
* Log create_uri_response exceptions to logger.exception

* Support grant type password - basics

* Add tests for Resource Owner Password Credentials Flow

* Password Grant -Response according to specification

* Better tests for errors, disable grant type password by default

* Add documentation for grant type password

* User authentication failure to return 403

* Add id_token to response

* skipping consent only works for confidential clients

* fix URI fragment

example not working URL `http://localhost:8100/#/auth/callback/`

* OIDC_POST_END_SESSION_HOOK + tests

* Explicit function naming

* Remove print statements

* No need for semicolons, this is Python

* Update CHANGELOG.md

* fixed logger message

* Improved `exp` value calculation

* rename OIDC_POST_END_SESSION_HOOK to OIDC_AFTER_END_SESSION_HOOK

* added docs for OIDC_AFTER_END_SESSION_HOOK

*  Replaces `LOGIN_URL` with `OIDC_LOGIN_URL`
so users can use a different login path for their oidc requests.

* Adds a setting variable for custom template paths

* Updates documentation

* Fixed bad try/except/finally block

* Adds test for OIDC_TEMPLATES settings

* Determine value for op_browser_state from session_key or default

* Do not use cookie for browser_state. It may not yet be there

* Add docs on new setting

OIDC_UNAUTHENTICATED_SESSION_MANAGEMENT_KEY

* Fix compatibility for older versions of Django

* solved merging typo for missing @property
2017-05-05 05:19:57 +02:00
Wojciech Bartosiak
e7947e2738 Merge pull request #163 from ka7eh/feature-skip-consent-per-client
Adds per-client consent customization
2017-04-12 10:25:53 +02:00
kaveh
b164388e15 Adds per-client consent customization 2017-04-11 13:16:06 -07:00
Wojciech Bartosiak
5beac9893a Merge pull request #169 from juanifioren/revert-168-v0.4.x
Revert "Fix documentation typo for OIDC_EXTRA_SCOPE_CLAIMS"
2017-04-06 18:51:27 +01:00
Wojciech Bartosiak
2bfb17fac8 Revert "Fix documentation typo for OIDC_EXTRA_SCOPE_CLAIMS" 2017-04-06 19:51:07 +02:00
Wojciech Bartosiak
8a61e366a4 Merge pull request #168 from honewatson/v0.4.x
Fix documentation typo for OIDC_EXTRA_SCOPE_CLAIMS
2017-04-06 18:50:49 +01:00
honewatson
b46c92a3e8 Fix documentation typo for OIDC_EXTRA_SCOPE_CLAIMS
Replace 'OIDC_USERINFO' with 'OIDC_EXTRA_SCOPE_CLAIMS' for extra scope claims settings.py
2017-04-02 14:34:50 +10:00
Juan Ignacio Fiorentino
1727073447 Merge pull request #158 from ngrjs/patch-1
Update accesstokens.rst.
2017-03-27 09:58:54 -03:00
Nagaraj
8f1fc41cb2 Update accesstokens.rst
Refresh token requires client secret as well.
2017-03-07 22:55:51 +05:30
Ignacio Fiorentino
d9790ab214 Edit CHANGELOG. 2016-12-13 12:46:45 -03:00
Ignacio Fiorentino
40009944af Merge branch 'develop' of https://github.com/juanifioren/django-oidc-provider into develop 2016-12-12 16:46:30 -03:00
Ignacio Fiorentino
66a3497a1c Fix refresh_token cannot be primary key if null. 2016-12-12 16:46:21 -03:00
Juan Ignacio Fiorentino
c5d0a99b55 Merge pull request #145 from suutari-ai/use-time-time
Use time.time to generate the timestamps.
2016-12-12 14:32:45 -03:00
Tuomas Suutari
65538b0f7d utils.token: Use time.time to generate the timestamps
Use `time.time()` rather than `timezone.now()` for generating the unix
timestamps.  This avoids conversion between year-month-day-hh-mm-ss
formatted timestamp vs. unix timestamp and is therefore simpler and more
robust.

Add a test case for this too and amend test_token_endpoint, since it
used to mock timezone.now, but now it needs to mock time.time.
2016-12-07 14:22:20 +02:00
Tuomas Suutari
5e3876f0c6 Revert "Fix timestamps computing in tokens"
This reverts commit 975eb0163f.
2016-12-07 14:22:20 +02:00
Juan Ignacio Fiorentino
1081511b9a Update README.md 2016-12-02 12:27:08 -03:00
Ignacio Fiorentino
a6fc1a717e Update authorize template in docs. 2016-12-02 12:03:59 -03:00
Ignacio Fiorentino
e1fa322c4f Edit CHANGELOG. 2016-12-01 16:22:19 -03:00
Ignacio Fiorentino
db68977eb2 Provide doc for signals. 2016-12-01 16:20:53 -03:00
Ignacio Fiorentino
5242f0841e Add initial signals logic. 2016-12-01 16:20:34 -03:00
Ignacio Fiorentino
8d77634417 Edit CHANGELOG. 2016-11-30 13:25:06 -03:00
Ignacio Fiorentino
6ebd946649 Merge branch 'v0.4.x' of https://github.com/juanifioren/django-oidc-provider into develop 2016-11-30 13:22:52 -03:00
Juan Ignacio Fiorentino
ae00368a6a Merge pull request #138 from bgelineau/fix_timestamps
Fix timestamps computing in tokens
2016-11-30 11:42:27 -03:00
Brice Gelineau
975eb0163f Fix timestamps computing in tokens
The timestamp of timezone-aware datetimes was offset by the value of their timezone.
2016-11-30 15:23:11 +01:00
Ignacio Fiorentino
10ed8171f0 Bump version v0.4.4. 2016-11-29 17:37:07 -03:00
Juan Ignacio Fiorentino
11ef97fdbb Merge pull request #137 from bgelineau/fix_locale
Fix translations handling.
2016-11-29 17:16:26 -03:00
Brice Gelineau
8666990f69 Fix translations handling
Fix a missing _lazy.
Fix locale inclusion in the sdist package.
Fix French locale compiling.
2016-11-24 13:09:19 +01:00
Juan Ignacio Fiorentino
eb2af58354 Merge pull request #132 from hpool/v0.4.x
Fix a bug that the value of STANDARD_CLAIMS is updated
2016-11-09 12:23:26 -03:00
hpool
acc5b408d1 Fix a bug that the value of STANDARD_CLAIMS is updated 2016-11-09 19:31:37 +09:00
hpool
155b4598b0 Add test for STANDARD_CLAIMS values 2016-11-09 19:20:27 +09:00
Ignacio Fiorentino
53166fb9ea Fix TypeError Unicode when using hashlib. 2016-11-04 15:56:51 -03:00
Ignacio Fiorentino
f24445e421 Edit CHANGELOG. 2016-11-04 15:41:51 -03:00
Ignacio Fiorentino
8a4103edca Fix bug in Python 3 using Session Management middleware. 2016-11-04 15:40:35 -03:00
Ignacio Fiorentino
2ec9cbe334 Fix wrong link in docs. 2016-11-02 12:35:22 -03:00
Ignacio Fiorentino
4155638226 Bump version v0.4.3. 2016-11-02 12:28:39 -03:00
Ignacio Fiorentino
21fb1aae98 Edit CHANGELOG. 2016-11-02 12:26:56 -03:00
Ignacio Fiorentino
7576448414 Add more doc for session management. 2016-11-02 11:43:39 -03:00
Ignacio Fiorentino
59db79b65c Fix tests for end session endpoint. 2016-11-01 16:01:03 -03:00
Ignacio Fiorentino
e458542be2 Fix urls and names. 2016-11-01 12:15:48 -03:00
Ignacio Fiorentino
f8e0f2dc2c Re-generate migrations with Python 3. 2016-11-01 12:00:13 -03:00
Ignacio Fiorentino
5d07111a18 Implementing end_session_endpoint feature with post_logout_redirect_uri. 2016-10-31 17:07:06 -03:00
Ignacio Fiorentino
ecba16ed36 Fix bug with id_token without openid scope. 2016-10-31 16:37:51 -03:00
Ignacio Fiorentino
9bdec5da7c Add post_logout_redirect_uris for Client model. 2016-10-31 16:36:58 -03:00
Ignacio Fiorentino
d9149b162d Add initial doc for session management. 2016-10-28 16:56:06 -03:00
Ignacio Fiorentino
b442dbf979 Add Python 3.5 version in setup. 2016-10-28 15:30:47 -03:00
Ignacio Fiorentino
d2e2c66d81 Fix setup. Now makes use of find_packages function. 2016-10-28 15:29:17 -03:00
Ignacio Fiorentino
50e5287b48 Initial Session Management version. 2016-10-28 15:25:52 -03:00
Ignacio Fiorentino
4d2bdb9a97 Generate bigger secret with sha224. 2016-10-26 17:04:12 -03:00
Ignacio Fiorentino
3711d6c5ab Fallback user claims (email, first_name, etc). 2016-10-26 16:46:14 -03:00