Skip to main content

A simple Django app to login with GET request type that it use Token parameter

Project description

===================
django-get-utologin
===================

Django Get Autologin is a simple Django app to login with GET request type that it use Token parameter.

Installation
------------
Install package from PYPI:

pip install django-pure-pagination

or clone and install from repository:

git clone git@github.com:massumo/django-get-autologin.git
cd django-get-autologin
python setup.py install

Configurations
--------------

Add "get_autologin" to your INSTALLED_APPS setting like this:

INSTALLED_APPS = [
...
'get_autologin',
]

Include the polls URLconf in your project urls.py like this:

from django.conf.urls import url, include
url(r'^get-autologin/', include('get_autologin.urls', namespace='get_autologin')),

P.S: This namespace important for test.

Settings.py
-----------

Override AUTHENTICATION_BACKENDS

AUTHENTICATION_BACKENDS = [
'get_autologin.backends.UrlTokenBackend',
'django.contrib.auth.backends.ModelBackend'
]

Define LOGIN_URL and LOGIN_REDIRECT_URL (You have to define)

LOGIN_URL = "your-login-url"
LOGIN_REDIRECT_URL = "your-login-redirect-url"

Migrate
-------

Run `python manage.py migrate` to create the get_autologin models.

That's all.


Admin Page
----------

Tokens are managed in admin page. Sample management page:

http://example.com/admin/get_autologin/token/


Example Request
---------------
http://example.com/get-autologin/?token={token}

If the token parameter is correct when this request is made, it means that you have logged in as a user who has this token.

Project details


Release history Release notifications | RSS feed

This version

0.2

Download files

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

Source Distribution

django-get-autologin-0.2.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

django_get_autologin-0.2-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file django-get-autologin-0.2.tar.gz.

File metadata

File hashes

Hashes for django-get-autologin-0.2.tar.gz
Algorithm Hash digest
SHA256 f2bb00a8aeb908abb6a8c77443245aa5d84073fd716fb160f597837fbab69cf1
MD5 a72c4cbadf669c75812688d225f61b14
BLAKE2b-256 632651bedd023d84f1a8c3fff47afdb84a70980800f842d4779cfa6479ce2bfb

See more details on using hashes here.

File details

Details for the file django_get_autologin-0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for django_get_autologin-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 39e5aa41356f6e5e0d4a3945a8a1c82617c27dfa54d96701dba31d4aeb67c3be
MD5 fd3ad21492084a13b63d7d2394b13158
BLAKE2b-256 382e58f36f5feb8ba093de44fe1312da2115dbd223b92dcf60d8673fddd482f8

See more details on using hashes here.

Supported by

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