Skip to main content

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

  1. Add "canvas_api_token" to your INSTALLED_APPS settings

  2. Insert the url configuration into your project/app urls.py

url(r'^canvas_api_token/', include('canvas_api_token.urls'))
  1. 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

Release History

0.1.0 (2014-12-17)

  • Birth!

0.1.1 (2014-12-18)

  • fixed download_url in setup.py

0.1.2 (2015-01-07)

  • fixed bug in utils.canvas_uri use of urlunparse

  • added unique index to CanvasApiToken.user_id

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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

django_canvas_api_token-0.1.2-py2-none-any.whl (8.2 kB view details)

Uploaded Python 2

File details

Details for the file django_canvas_api_token-0.1.2-py2-none-any.whl.

File metadata

File hashes

Hashes for django_canvas_api_token-0.1.2-py2-none-any.whl
Algorithm Hash digest
SHA256 0451188daf08634817637256e03434e30b42bf91d7805dac33e65613bd4097c2
MD5 f11f02778bdac7ad8af30388390fc924
BLAKE2b-256 3ebe10b61f011b325977d3310d3ae1fa87e27c634a8c80babd24f6272c360a4d

See more details on using hashes here.

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