Waldur plugin bringing OpenID-based authentication support.
Project description
NodeConductor OpenID
====================
NodeConductor plugin bringing OpenID-based authentication support.
Usage
-----
1. Install the plugin
2. Run migrations to create new tables.
.. code-block::
nodeconductor migrate --noinput
3. Add your OpenID to your user account:
.. code-block::
NodeConductor admin > Core > Django_Openid_Auth > User open ids > Add user open id
User: <your-django-user-id>
Claimed id: <openid.claimed_id> (example: https://launchpad.net/~johndoe)
Display name: <your-display-name>
4. Navigate to `<nodeconductor-url>/api-auth/openid/login` and try to log in using your OpenID provider URL
Known issues
------------
**Database migrations do not work correctly with MySQL**
Running migrations (step 3 of 'Usage' section) may fail with following error:
.. code-block::
django.db.utils.OperationalError: (1170, "BLOB/TEXT column 'claimed_id' used in key specification without a key length")
This is a `known issue<https://bugs.launchpad.net/django-openid-auth/+bug/524796>`_ of `django-openid-auth<https://pypi.python.org/pypi/django-openid-auth/>`_ :
Django `does not allow<https://code.djangoproject.com/ticket/2495>`_ `TextField` to be unique.
Fix exists but it is not yet merged as of 2016-05-03.
To work around the problem you will have to manually patch the `django-openid-auth` code as follows:
.. code-block:: python
# File: django_openid_auth/migrations/0001_initial.py
- claimed_id = models.TextField(max_length=2047, unique=True)
+ claimed_id = models.CharField(max_length=255, unique=True)
# File: django_openid_auth/migrations/0001_initial.py
- ('claimed_id', models.TextField(unique=True, max_length=2047)),
+ ('claimed_id', models.CharField(unique=True, max_length=255)),
-- and launch the migrations again.
====================
NodeConductor plugin bringing OpenID-based authentication support.
Usage
-----
1. Install the plugin
2. Run migrations to create new tables.
.. code-block::
nodeconductor migrate --noinput
3. Add your OpenID to your user account:
.. code-block::
NodeConductor admin > Core > Django_Openid_Auth > User open ids > Add user open id
User: <your-django-user-id>
Claimed id: <openid.claimed_id> (example: https://launchpad.net/~johndoe)
Display name: <your-display-name>
4. Navigate to `<nodeconductor-url>/api-auth/openid/login` and try to log in using your OpenID provider URL
Known issues
------------
**Database migrations do not work correctly with MySQL**
Running migrations (step 3 of 'Usage' section) may fail with following error:
.. code-block::
django.db.utils.OperationalError: (1170, "BLOB/TEXT column 'claimed_id' used in key specification without a key length")
This is a `known issue<https://bugs.launchpad.net/django-openid-auth/+bug/524796>`_ of `django-openid-auth<https://pypi.python.org/pypi/django-openid-auth/>`_ :
Django `does not allow<https://code.djangoproject.com/ticket/2495>`_ `TextField` to be unique.
Fix exists but it is not yet merged as of 2016-05-03.
To work around the problem you will have to manually patch the `django-openid-auth` code as follows:
.. code-block:: python
# File: django_openid_auth/migrations/0001_initial.py
- claimed_id = models.TextField(max_length=2047, unique=True)
+ claimed_id = models.CharField(max_length=255, unique=True)
# File: django_openid_auth/migrations/0001_initial.py
- ('claimed_id', models.TextField(unique=True, max_length=2047)),
+ ('claimed_id', models.CharField(unique=True, max_length=255)),
-- and launch the migrations again.
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
Close
Hashes for nodeconductor-auth-openid-0.7.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 333647e83bd4ade524d6fac194e0e87fd42fdf21687757ac54683223d241544c |
|
MD5 | bf624051dd579b0bbee2b8b289c60a12 |
|
BLAKE2b-256 | f7d527f31c816a5342e474522b2c63293bddab05b1ddf41fbb7f3b4ccf4e6a5a |
Close
Hashes for nodeconductor_auth_openid-0.7.0-py2.7.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49084a2fc86e7160cbac9d6c5a43bd2d58df92247c4b6990141eb89391b723b8 |
|
MD5 | d569ced2081b92328f704e9f208610c6 |
|
BLAKE2b-256 | 5c895046ebcef70b00920f86a86beb6748c4aedc122ccd1e9d90f8b26349263b |