Django app for generating Canvas API user oauth tokens
Project description
A reusable django app for handling the workflow of generating per-user Canvas API oauth tokens. The app assumes that your django project is using the django_auth_lti middleware.
Install
pip install django-canvas-api-token
Setup
Add "canvas_api_token" to your INSTALLED_APPS settings
Insert the url configuration into your project/app urls.py
url(r'^canvas_api_token/', include('canvas_api_token.urls'))
Add a LTI_APP_DEVELOPER_KEYS entry to your settings that looks like this:
LTI_APP_DEVELOPER_KEYS = {
'[oauth-consumer-key]': {
'client_id': '[client_id]',
'client_secret': '[client_secret]'
}
}
where …
oauth_consumer_key value is the consumer key used when registering your LTI tool in the Canvas account admin
client_id is the integer client id value of your Canvas developer key
client_secret is the random string ‘secret’ value of your Canvas developer key
License
django-canvas-api-token is licensed under the BSD license
Copyright
2014 President and Fellows of Harvard College
Release History
0.1.0 (2014-12-17)
Birth!
0.1.1 (2014-12-18)
fixed download_url in setup.py
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file django_canvas_api_token-0.1.1-py2-none-any.whl
.
File metadata
- Download URL: django_canvas_api_token-0.1.1-py2-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63ff1aa1f0dc139c342c82a8b6d9ec4a46fa64269347d2396844cd0f569bf300 |
|
MD5 | f9697e87ea2568de229bc32873c68052 |
|
BLAKE2b-256 | 06cff39e012e1ad0122b674156cb75ea840ac190c03987f60ec3d87f2ab01af6 |