Skip to main content

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

See documentation

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.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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-allauth-id4me-0.0.12.tar.gz (21.3 kB view details)

Uploaded Source

Built Distribution

django_allauth_id4me-0.0.12-py2.py3-none-any.whl (22.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django-allauth-id4me-0.0.12.tar.gz.

File metadata

  • Download URL: django-allauth-id4me-0.0.12.tar.gz
  • Upload date:
  • Size: 21.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for django-allauth-id4me-0.0.12.tar.gz
Algorithm Hash digest
SHA256 2836093bb129249964d80a4f25577b37a5c7e85cb0c9c72cee0df53ac673ca73
MD5 b50e0f2ff5e16b9c74473e07af0e20eb
BLAKE2b-256 8ade8089b5af6463dcd06b7dea8a3b317d5ec1238d2b4eca941ff9f8783b24ff

See more details on using hashes here.

File details

Details for the file django_allauth_id4me-0.0.12-py2.py3-none-any.whl.

File metadata

  • Download URL: django_allauth_id4me-0.0.12-py2.py3-none-any.whl
  • Upload date:
  • Size: 22.9 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/39.1.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for django_allauth_id4me-0.0.12-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 fdb037f9e20698994a8b9cde1a336939b259332315465796cf59e7c05a98c6dd
MD5 9452ddc148d1ac0330a2d66bc59f93ec
BLAKE2b-256 ea1be80f7db575d2cbf02c8326a0da90799aca0c25c858a51b8b7f3b0025c771

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page