Commit graph

123 commits

Author SHA1 Message Date
Wojciech Bartosiak 101130e47a Merge branch 'v0.5.x' into develop 2017-05-05 04:57:21 +02:00
Gertjan Oude Lohuis 26b2efe361 Fix compatibility for older versions of Django 2017-04-18 14:24:43 +02:00
Gertjan Oude Lohuis 542479a227 Do not use cookie for browser_state. It may not yet be there 2017-04-18 14:24:43 +02:00
Gertjan Oude Lohuis 62a0a48678 Determine value for op_browser_state from session_key or default 2017-04-18 14:24:37 +02:00
Wojciech Bartosiak 748a8bdfb8 Merge pull request #167 from ka7eh/feature-templates-in-settings
Adds OIDC_TEMPLATES to settings
2017-04-12 10:20:36 +02:00
kaveh e090db2d6c Adds test for OIDC_TEMPLATES settings 2017-04-11 15:20:37 -07:00
kaveh b164388e15 Adds per-client consent customization 2017-04-11 13:16:06 -07:00
kaveh bddbb68614 Replaces LOGIN_URL with OIDC_LOGIN_URL
so users can use a different login path for their oidc requests.
2017-03-31 13:41:26 -07:00
Wojciech Bartosiak d5111ed881 Merge pull request #162 from wojtek-fliposports/fix_after_login_hook_doc
rename OIDC_POST_END_SESSION_HOOK to OIDC_AFTER_END_SESSION_HOOK
2017-03-31 13:30:55 +01:00
Wojciech Bartosiak 9ddbdbf294 rename OIDC_POST_END_SESSION_HOOK to OIDC_AFTER_END_SESSION_HOOK 2017-03-31 13:00:24 +01:00
Wojciech Bartosiak 721342fcb2 Improved exp value calculation 2017-03-30 23:18:21 +01:00
Wojciech Bartosiak 5a4292677b Merge pull request #147 from uhavin/feature-granttype-password
Feature granttype password
2017-03-28 10:02:06 +01:00
Niels van Huijstee 82dee87ebe No need for semicolons, this is Python 2017-03-28 10:38:43 +02:00
Niels van Huijstee a640358182 Remove print statements 2017-03-28 10:37:31 +02:00
Niels van Huijstee ed3f9988aa Explicit function naming 2017-03-28 10:37:02 +02:00
Wojciech Bartosiak 9fd2494465 Merge pull request #152 from wojtek-fliposports/feature-end-session-hook
OIDC_POST_END_SESSION_HOOK + tests
2017-03-27 17:40:41 +01:00
Wojciech Bartosiak 9e70b9597e Merge pull request #134 from ByteInternet/switch_debug_to_error_when_server_encounters_error
Log create_uri_response exceptions to logger.exception
2017-03-27 17:37:39 +01:00
Wojciech Bartosiak 7496b2f036 OIDC_POST_END_SESSION_HOOK + tests 2017-01-27 09:27:16 +01:00
Niels van Huijstee 7b9f08c46c Add id_token to response 2016-12-21 15:58:37 +01:00
Niels van Huijstee 1a31bc6554 User authentication failure to return 403 2016-12-21 15:58:05 +01:00
Niels van Huijstee 39111a8388 Better tests for errors, disable grant type password by default 2016-12-13 13:40:14 +01: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
Niels van Huijstee 0633b664a0 Password Grant -Response according to specification 2016-12-07 11:51:24 +01:00
Niels van Huijstee 2e0072cad7 Add tests for Resource Owner Password Credentials Flow 2016-12-07 10:05:33 +01: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
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
Bono 80441aaf32 Log create_uri_response exceptions to logger.exception 2016-11-18 18:08:37 +01:00
hpool 155b4598b0 Add test for STANDARD_CLAIMS values 2016-11-09 19:20:27 +09: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
David Montano 99d7194ab1 Make Client available when using OIDC_EXTRA_SCOPE_CLAIMS
Now it's passed the Token to the ScopeClaims constructor so that it can make Client avaialble to implementors
2016-10-12 14:23:57 -05:00
Ignacio Fiorentino 38e37e7c47 Merge branch 'v0.4.x' of https://github.com/wojtek-fliposports/django-oidc-provider into wojtek-fliposports-v0.4.x 2016-10-11 11:52:31 -03:00
Ignacio Fiorentino 74b5390daa Merge branch 'redirect_uri_query' of https://github.com/jerrykan/django-oidc-provider into jerrykan-redirect_uri_query 2016-10-05 12:33:05 -03:00
Wojciech Bartosiak 59312bf811 redirect URI clean up moved to utils module 2016-10-04 19:32:54 +02:00
Ignacio Fiorentino 8a63c83514 Refactoring create_id_token function. 2016-09-09 13:10:12 -03:00
Ignacio Fiorentino 439774aeeb Add test for Hybrid flow. Plus refactoring. 2016-09-08 17:15:25 -03:00
Florent Jouatte 2c1d582475 #113: omit claim when empty 2016-08-17 12:13:33 +02:00
Ignacio Fiorentino d35f16eeae Merge branch 'fix-import-all' of https://github.com/grahamu/django-oidc-provider into grahamu-fix-import-all 2016-08-12 12:02:48 -03:00
Graham Ullrich ba4faee6ef Fix global imports
Global imports ("from X import *") are discouraged in Python.
2016-08-11 16:05:13 -06:00
Ignacio Fiorentino 988cad073e Add new test for migrations. 2016-08-11 16:43:30 -03:00
Graham Ullrich b8d1d63c28 Improve tox.ini envlist layout, simplified commands.
Remove tests/app/settings.py in favor of settings in setup.py.
Change MANIFEST.in to include README.md (which exists) instead of README.rst (which does not exist).
Update .travis.yml to use tox instead of `python django_admin.py`, include Django v1.10 in the mix.
2016-08-11 11:13:23 -06:00
Graham Ullrich e822252b6e Use original test files 2016-08-08 12:20:47 -06:00
Graham Ullrich e04d42fedf flake8 fixes 2016-08-08 11:54:40 -06:00
Graham Ullrich ffddb69f80 Add tests for at_hash
Ensure at_hash is present in id_token when warranted.
2016-08-08 11:24:07 -06:00
Ignacio Fiorentino 2573a60092 Fix test app urls and templates loaders in settings. 2016-08-04 13:35:27 -03:00
Ignacio Fiorentino dc9ec1863e Change setting OIDC_USERINFO. 2016-07-07 12:50:27 -03:00
Ignacio Fiorentino 5255719700 Add date_given to UserConsent model. Add verbose names in models. 2016-06-13 12:15:10 -03:00
Si Feng be5656bcf4 Make SITE_URL optional. 2016-05-25 14:58:58 -07:00
Ignacio Fiorentino 8320394a67 Refactoring variables. 2016-04-14 17:45:30 -03:00