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 Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page