An open API service indexing awesome lists of open source software.

https://github.com/consbio/python-josso-auth

A JOSSO backend for python-social-auth
https://github.com/consbio/python-josso-auth

Last synced: about 2 months ago
JSON representation

A JOSSO backend for python-social-auth

Awesome Lists containing this project

README

          

# python-josso-auth #

`python-josso-auth` provides a `JOSSOAuth` authentication for `python-social-auth`,
which you can subclass to easily add JOSSO providers as social auth options.

To use, just create a class for your provider which extends `JOSSOAuth` and provide a name and base URL.

```python
from josso.backend import JOSSOAuth

class ExampleJOSSOProvider(JOSSOAuth):
name = 'example_josso'
base_url = 'https://example.com/josso/'
```

Now you can include your backend in your settings. For example, with Django:
```python
AUTHENTICATION_BACKENS += ('myapp.backends.ExampleJOSSOProvider',)
```

## Install ##

```bash
$ pip install python-josso-auth
```