...
 
Commits (1)
......@@ -85,7 +85,8 @@ class ID4meProvider(Provider):
context=ctx,
claimsrequest=ID4meClaimsRequest(
userinfo_claims=userinfo_claims
)
),
usenonce=True
)
def get_login_url(self, request, **kwargs):
......
......@@ -28,12 +28,12 @@ def login(request):
ctx = provider.get_rp_context(form.cleaned_data['id4me'])
safesession = JSONSafeSession(request.session)
SocialLogin.stash_state(request)
url = provider.get_consent_url(ctx)
safesession['id4me_ctx'] = ctx.to_json()
# Fix for issues 1523 and 2072 (github django-allauth)
# if 'next' in form.cleaned_data and form.cleaned_data['next']:
# auth_request.return_to_args['next'] = \
# form.cleaned_data['next']
url = provider.get_consent_url(ctx)
return HttpResponseRedirect(url)
# UnicodeDecodeError:
# see https://github.com/necaris/python3-openid/issues/1
......
id4me-rp-client == 0.0.4
Django == 1.11.16
django-allauth == 0.38.0
id4me-rp-client >= 0.0.9
Django >= 1.11.16 < 2.0.0
django-allauth >= 0.38.0
......@@ -3,7 +3,7 @@
from setuptools import setup
setup(name='django-allauth-id4me',
version='0.0.5',
version='0.0.6',
description='Social provider for django-allauth - ID4me https://id4me.org',
long_description_content_type="text/markdown",
long_description=open('README.md').read(),
......@@ -34,7 +34,7 @@ setup(name='django-allauth-id4me',
package_data={'django-allauth-id4me': ['allauth_id4me/templates/id4me/*.html']},
include_package_data=True,
install_requires=[
'id4me-rp-client == 0.0.5',
'id4me-rp-client >= 0.0.9',
'Django >= 1.11.16',
'django-allauth >= 0.38.0',
],
......