Skip to main content

Consumer for paytm oauth

Project description

===========
Paytm Oauth
===========

Paytm Oauth is a django based consumer for paytm oauth.

Quick start
-----------

1. Add "paytmoauth" to your INSTALLED_APPS in settings like this::

```
INSTALLED_APPS = (
...
'paytmoauth',
)
```

2. Update your context_processors to include one provided by `paytmoauth` like

```
TEMPLATES = [
...
'OPTIONS': {
'context_processors': [
...
'paytmoauth.context_processors.login_url',
]
}
]
```

3. Define the following variables in your settings

```
PAYTMOAUTH_PROVIDER_URL
PAYTMOAUTH_AUTHORIZATION_ENDPOINT
PAYTMOAUTH_AUTHENTICATION_ENDPOINT
PAYTMOUATH_RESOURCE_ACCESS_ENDPOINT
PAYTMOAUTH_CLIENT_ID
PAYTMOAUTH_CLIENT_SECRET
PAYTMOAUTH_SCOPE
PAYTMOAUTH_REDIRECT_URL
```

4. Include urls in root urls like this::

```
url(r'^oauth/', include('paytmoauth.urls')),
```

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

paytm-oauth-0.2.tar.gz (3.7 kB view hashes)

Uploaded Source

Supported by

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