Djdg Django Oauth 1.0.1 | GitLocker.com Product

djdg-django-oauth 1.0.1

Last updated:

0 purchases

djdg-django-oauth 1.0.1 Image
djdg-django-oauth 1.0.1 Images

Free

Languages

Categories

Add to Cart

Description:

djdgdjangooauth 1.0.1

# django-oauthDescription--------Djdg Django Oauth provides a simple signature middleware verification between appsSupport-------mail to [email protected]* Python 2.7* Django 1.9Installation------------**Install with pip** pip install djdg-django-oauth**Add `djdg_oauth` to your `INSTALLED_APPS`** INSTALLED_APPS = ( ... 'djdg_oauth', )**run migrate to add tables:** python manage.py migrate djdg_oauth**list, add, del app secret:** python manage.py listauthapp {app_name} python manage.py addauthapp {app_name} python manage.py delauthapp {app_name}**add middleware**(**options**, *you can create yourself middleware with djdg_oauth.oauthclient.OauthClient.verify_request*): MIDDLEWARE_CLASSES = ( ... 'djdg_oauth.middleware.DjdgAuthMiddleware',)**add settings**(*app secret gaved by others*) DJDG_AUTH = { "APPS": [ {"appid": "xxxxxx", "secret": "xxxxxxxxxxxxxxxxxxx", "app": "xxx"}, .... ] "FULL_ESCAPE_URL": [....] # full match url to escape auth check, "REGEX_ESCAPE_URL": [....] # regex match url to escape auth check, "REGEX_CHECK_URL":[...] # need check url, if not empty, escape urls invalid })Documentation--------------**Verify request** from djdg_oauth.oauthclient import OauthClient auth = OauthClient() auth.verify(request)**Do request** from djdg_oauth.oauthclient import OauthClient request_data = { "url": #url, "app": #app type, "parameters": #all request data, "method": #request method, "headers": #default None } OauthClient.oauth_request(**request_data)License-------djdg-oauth is released under the terms of the **BSD license**. Full details in ``LICENSE`` file.Changelog---------version 0.0.20debug ascii error

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product: (if this is empty don't purchase this product)

Customer Reviews

There are no reviews.