Social provider for django-allauth - ID4me https://id4me.org
Project description
django-allauth-id4me
Extension library for django-allauth to support ID4me (https://id4me.org) as social login provider.
Specification reference
https://gitlab.com/ID4me/documentation/blob/master/id4ME%20Technical%20Specification.adoc
- Version: 1.0
- Revision: 02
Installation
Install the package from pip
pip install django-allauth-id4me
Configure django-allauth if not yet installed
Configure django project
Add allauth_id4me
to INSTALLED_APPS
in your settings.py
:
INSTALLED_APPS = (
...
# ... include the providers you want to enable:
'allauth_id4me',
...
)
Run migrations in your django project
python manage.py migrate
Add social client configuration
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:
- Provider: ID4me
- Name: the name of your application (will appear on login screen)
- Client id: wished client_id, may however not be respected
- Secret key: not used, fill with dummy value
Open http://localhost:8000/accounts/login/ and test the login with ID4me!
Template customization
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>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for django-allauth-id4me-0.0.11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11d0dc3e6b3284e749de543bfcfd15e8414f793bb1330c225bc83ed8596c1be7 |
|
MD5 | 607b624d07de62a539e7387e613842de |
|
BLAKE2b-256 | cfc37d8f2cc12988a0bd513b1aad229f9fc0a0971bf18c0e43c4a1d30fb5b116 |
Hashes for django_allauth_id4me-0.0.11-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d8cc111b85197faecfca8a653ad7afd24b3cee2da4dc83f0ba698f473ca323e |
|
MD5 | c40672dbc2dbae5270006a1a0511d17c |
|
BLAKE2b-256 | 2a276c53df01e44088b0caeda9b64a1a88a2f12aa44a579c8afc738df6ad37bf |