Skip to main content

A lightweight package facilitating authentication for Dartmouth services.

Project description

Dartmouth Auth

A lightweight package facilitating authentication for Dartmouth services.

Getting started

  1. Install the package:
pip install dartmouth-auth
  1. Obtain a Dartmouth API key from developer.dartmouth.edu
  2. Store the API key as an environment variable called DARTMOUTH_API_KEY:
export DARTMOUTH_API_KEY=<your_key_here>

Using the library

Obtain a JSON Web Token (JWT):

import dartmouth_auth


my_jwt = dartmouth_auth.get_jwt()

You can then use my_jwt for any authenticated Dartmouth services that require a JWT.

Inspect get_jwt()'s docstring for more detailed usage information.

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

dartmouth_auth-0.0.1.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

dartmouth_auth-0.0.1-py3-none-any.whl (3.5 kB view hashes)

Uploaded Python 3

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