Social provider for django-allauth - ID4me https://id4me.org
pip install django-allauth-id4me==0.0.3
Extension library for django-allauth to support ID4me (https://id4me.org) as social login provider.
https://gitlab.com/ID4me/documentation/blob/master/id4ME%20Technical%20Specification.adoc
pip install django-allauth-id4me
Add allauth_id4me
to INSTALLED_APPS
in your settings.py
:
INSTALLED_APPS = (
...
# ... include the providers you want to enable:
'allauth_id4me',
...
)
python manage.py migrate
Start your django project
python.exe manage.py runserver localhost:8000
Open /admin application http://localhost:8000/admin/
Go to Home › Social Accounts › Social applications and add new application:
Open http://localhost:8000/accounts/login/ and test the login with ID4me!
To present own ID4me login page it is enough to place new template in id4me
folder inside your templates
dictionary named login.html
. Minimum required content:
<form id="id4me_login_form" class="id4me_login" method="post" action="{% url 'id4me_login' %}">
{% csrf_token %}
{{form.as_p}}
<button type="submit">Sign In</button>
</form>
version | date | changes |
---|---|---|
0.0.13 | 2019-03-05 | - IMPROVEMENT: setting always state for increased compatibility |
0.0.12 | 2019-03-05 | - NEW FEATURE: input field to set cookie and remember ID |
0.0.11 | 2019-02-27 | - BUGFIX: Client registration updated when re-registered |