https://github.com/glocktober/somepig
Web server test tool for wsgi environments
https://github.com/glocktober/somepig
bottle python wsgi
Last synced: 18 days ago
JSON representation
Web server test tool for wsgi environments
- Host: GitHub
- URL: https://github.com/glocktober/somepig
- Owner: Glocktober
- Created: 2022-02-12T17:16:16.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-02-12T17:16:52.000Z (over 3 years ago)
- Last Synced: 2025-02-09T17:33:51.026Z (8 months ago)
- Topics: bottle, python, wsgi
- Language: Python
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Somepig
Somepig is a simple Flask app useful in debugging web configurations and integrations.
I don't want to oversell this - it's a simple application that might be useful to others.
### What it does for you
* Confirm HTML headers passed to the wsgi app
* Confirm the environment variables passed to the wsgi app
* Check for bearer token JWT (the token is decoded but not verified) (This is optional and is used only if the `pyjwt` module is installed.)### Where this is useful
* Test installation of wsgi server (e.g. mod_wsgi configuration)
* Verifying enviroment variables (including REMOTE_USER) passed to the app from the web server
* Examine the impact of proxy servers on your app
* Debugging mod_auth_mellon (SAML) or mod_auth_oidc integrations
* These are Apache examples but the same is true for other web servers### API routes
| URL route | format|description |
|-------|--------|-------|
|/hdr | json|dump HTML headersp|
|/env|json|dump (most) wsgi environment variables|
|/whoami|html|print value of `REMOTE_USER`|
|/bearer|json|print **JWT** bearer token (optional)|
### Installation
* install from github
* integrate with your web server as you would any other Python Flask application