Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (
Help us improve Python packaging - Donate today!

Client library for accessing GaaP services

Project Description

Python package providing a WSGI middleware for accessing GaaP services.


You can’t do this yet, but soon will.

pip install ags_client



You will need a client ID and client secret from the GaaP Identity Broker. You can’t get these yet, but soon will by emailing us with a brief summary of:

  • who you are
  • what project you’re going to be using it on

Quick Start


For example: given your Flask app is defined in in a variable named app, create a file called

import ags

from webservice import app

app.wsgi_app = ags.Client(app.wsgi_app)

Then start your app with a WSGI server such as Gunicorn or uWSGI. Eg:

gunicorn wsgi:app


The middleware looks for certain environment variables for settings. The following variables are REQUIRED:

The client ID that you have been issued
The client secret that you have been issued
Comma separated list of paths in your web application that require authentication. May include regular expressions.

The following variables are OPTIONAL:

Path to sign out view in your application - default: sign-out

The following variables can be used to override defaults, but usually should not be used:

The path to the OIDC authentication endpoint on the broker
The path to the OIDC jwks_uri endpoint on the broker
The path to the OIDC token endpoint on the broker
The URL of the OIDC identity broker
Overrides default OIDC callback path


This source code is provided as-is, with no incident response or support levels. Please log all questions, issues, and feature requests in the Github issue tracker for this repo, and we’ll take a look as soon as we can. If you’re reporting a bug, then it really helps if you can provide the smallest possible bit of code that reproduces the issue. A failing test is even better!


  • Check out the latest master to make sure the feature hasn’t been implemented or the bug hasn’t been fixed
  • Check the issue tracker to make sure someone hasn’t already requested and/or contributed the feature
  • Fork the project
  • Start a feature/bugfix branch
  • Commit and push until you are happy with your contribution
  • Make sure your changes are covered by unit tests, so that we don’t break it unintentionally in the future.
  • Please don’t mess with, version or history.
Release History

Release History

This version
History Node


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
ags_client-0.0.1.tar.gz (3.9 kB) Copy SHA256 Checksum SHA256 Source Nov 22, 2016

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