django-oidc-provider/oidc_provider
Tuomas Suutari 5165312d01 Use stored user consent for public clients too (#189)
When using Implicit Flow, it should be OK to use the stored user consent
even if the client is public.  The redirect uri checks should make sure
that the stored consent of another client cannot be misused to get a
consent to a site that is not related to the client.

It is also important to support this, since public clients using
Implicit Flow do not have a refresh token to update their access tokens,
so only way to keep their login session open is by issuing authorization
requests from an iframe with the "prompt=none" parameter (which does not
work without the previously stored consent).  See the following links
for more info and examples on how to renew the access token with SPAs:

https://auth0.com/docs/api-auth/tutorials/silent-authentication#refresh-expired-tokens

https://damienbod.com/2017/06/02/

https://github.com/IdentityServer/IdentityServer3/issues/719#issuecomment-230145034
2017-07-07 13:18:36 +02:00
..
lib Redirect URIs must match exactly. (#191) 2017-07-07 09:07:21 +02:00
locale Fix translations handling 2016-11-24 13:09:19 +01:00
management Update pyjwkest to version 1.3.0. 2016-10-03 12:54:54 -03:00
migrations Adds per-client consent customization 2017-04-11 13:16:06 -07:00
static/oidc_provider/js Initial Session Management version. 2016-10-28 15:25:52 -03:00
templates/oidc_provider Initial Session Management version. 2016-10-28 15:25:52 -03:00
tests Use stored user consent for public clients too (#189) 2017-07-07 13:18:36 +02:00
__init__.py Improve admin models. 2015-12-04 13:55:04 -03:00
admin.py Adds per-client consent customization 2017-04-11 13:16:06 -07:00
apps.py Add new app configuration file. 2015-12-04 13:55:34 -03:00
middleware.py Merge develop to v0.5.x (#179) 2017-05-05 05:19:57 +02:00
models.py Adds per-client consent customization 2017-04-11 13:16:06 -07:00
settings.py Merge develop to v0.5.x (#179) 2017-05-05 05:19:57 +02:00
signals.py Add initial signals logic. 2016-12-01 16:20:34 -03:00
urls.py Fix urls and names. 2016-11-01 12:15:48 -03:00
views.py Use stored user consent for public clients too (#189) 2017-07-07 13:18:36 +02:00