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>
CHANGELOG:
| 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 |
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django-allauth-id4me-0.0.13.tar.gz.
File metadata
- Download URL: django-allauth-id4me-0.0.13.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
904b2f194b13b741a97424233bdbea74a0b292e45a72b61c65212a687538a779
|
|
| MD5 |
95cedca6f430504eb70c69227b51b36c
|
|
| BLAKE2b-256 |
c65fa263e3d0bf62a94fa8968df73b9fd1640f70a196154922a8339c44b5a065
|
File details
Details for the file django_allauth_id4me-0.0.13-py2.py3-none-any.whl.
File metadata
- Download URL: django_allauth_id4me-0.0.13-py2.py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
85b1df95fcc8066b10717d26f8c8e51d59b3264d4a34240eb638bb86d669cb34
|
|
| MD5 |
407cb70d7bb0326635f5790bbc283795
|
|
| BLAKE2b-256 |
06fc080bfb08d304d2b2dfdbb2c3a506e2eeee770ac4431567c23a424781ff5b
|