Skip to main content

A django auth backend for authenticating against plex.tv

Project description

***************
django-plexauth
***************



.. image:: https://cloud.githubusercontent.com/assets/203583/7464347/62ecff22-f2ba-11e4-9146-bbd237b2fb93.png
:alt: Screenshot
:align: center


This module provides a django authentication backend for authenticating against plex.tv.

After properly setting up, you should be able to authenticate at /auth/login.

==========
Installing
==========

The quickest way to get installed is through PyPi. Simply run:

.. code-block:: bash

$ pip install django-plexauth

Install by placing the plexauth module in your python path.

All requirements can be installed via pip:

.. code-block:: bash

$ pip install django django-bootstrap3 django-activelink requests


============
Requirements
============
* requests_ >= 2.7.0
* django_ >= 1.8.0
* django-bootstrap3_
* django-activelink_ >= 0.4

=============
Configuration
=============

In the settings.py file for your project, ensure you have the following:

.. code:: python

INSTALLED_APPS = (
...
'bootstrap3',
'activelink',
'plexauth',
)
AUTHENTICATION_BACKENDS = (
'plexauth.auth.PlexBackend',
)

AUTH_USER_MODEL = 'plexauth.PlexUser'
PLEX_ADMIN_USERS = ('admin_usernames')
PLEX_SERVER_NAME = 'your_server_nickname'

In your urls.py file, add the following line

.. code:: python

urlpatterns = patterns('',
...
url(r'^auth/?', include('plexauth.urls')),
)



.. _requests: https://github.com/kennethreitz/requests
.. _django: https://github.com/django/django
.. _django-bootstrap3: https://github.com/dyve/django-bootstrap3
.. _django-activelink

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-plexauth-0.1.1.tar.gz (5.4 kB view details)

Uploaded Source

File details

Details for the file django-plexauth-0.1.1.tar.gz.

File metadata

File hashes

Hashes for django-plexauth-0.1.1.tar.gz
Algorithm Hash digest
SHA256 fa6324740a6982fc529424f33617e189ee5ec1433de846346b83bc8e4761053a
MD5 f42ad09796ad88fa9467db882e03ab3e
BLAKE2b-256 9f38b10945ecff4b23a7ae68d58e149cf3bdc0c2d2086fef3340369010897710

See more details on using hashes here.

Supported by

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