This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Help us improve Python packaging - Donate today!
Project Description
# byu-jwt-python
A python JWT validator that does all the BYU specific stuff as well.

You will need a file named ~/.byu/byu-jwt-python.yaml with the following contents. Get your info at
client_id: <your WSO2 application's Consumer Key>
client_secret: <your WSO2 application's Consumer Secret>

## API

### How to Validate a JWT

import byu_jwt
# valide JWT
except Exception:
# invalid JWT

### JWT Header Names

BYU's API Manager creates an HTTP header that contains a signed [JWT]( The names of the designed BYU signed headers can be referenced here for lookup convenience.


The property containing the name of the HTTP header that contains the BYU signed JWT sent directly from BYU's API Manager.

Value is X-JWT-Assertion.


import byu_jwt
current_jwt_header = byu_jwt.BYU_JWT_HEADER_CURRENT


The property containing the name of the HTTP header that contains the BYU signed JWT forwarded on from a service that received the BYU signed JWT sent directly from BYU's API Manager.

Value is X-JWT-Assertion-Original.


import byu_jwt
original_jwt_header = byu_jwt.BYU_JWT_HEADER_ORIGINAL

## Testing
To run the integration tests do the following:

First make sure you have python and python3 installed on your system, then install virtualenv in whatever way you install python modules (usually `$ pip install virtualenv`).

$ virtualenv venv
$ source venv/bin/activate
$ pip install -r requirements
$ pip3 install -r requirements
$ python True
# The 'True' makes the tests run in verbose mode.
# Leaving it off will run the tests silently and they will only print info if any tests fail.
$ python3 True
$ deactivate # to get out of the virtualenv
Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
byu_jwt-1.1.0.tar.gz (2.0 kB) Copy SHA256 Checksum SHA256 Source Apr 14, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting