GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - axioms-io/sample-python-flask: Flask APIs Sample using Axioms. Secure your Flask APIs using Axioms Authentication and Authorization.

This repository was archived by the owner on Dec 13, 2025. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

19 Commits
19 Commits

Folders and files

NameName
Last commit message
Last commit date
apis
apis
 
 
.gitignore
.gitignore
 
 
.sample-env
.sample-env
 
 
LICENSE
LICENSE
 
 
Procfile
Procfile
 
 
README.md
README.md
 
 
Starters.postman_collection.json
Starters.postman_collection.json
 
 
api.py
api.py
 
 
app.json
app.json
 
 
config.py
config.py
 
 
requirements-dev.txt
requirements-dev.txt
 
 
requirements.txt
requirements.txt
 
 
runtime.txt
runtime.txt
 
 
wsgi.py
wsgi.py
 
 

Repository files navigation

sample-python-flask

Flask APIs Sample using Axioms and axioms-flask-py. Secure your Flask APIs using Axioms authentication and authorization.

Prerequisite

  • Python 3.7+
  • An Axioms client which can obtain access token after user's authentication and authorization and include obtained access token as bearer in Authorization header of all API request sent to Python/Flask application server.

Setup

Clone this repository,

git clone https://github.com/axioms-io/sample-python-flask.git
cd sample-python-flask

Create virtualenv,

python -m venv venv

Then activate virtualenv and install requirements,

source venv/bin/activate
pip install -r requirements-dev.txt

Set environment variables,

export FLASK_APP=api.py
export FLASK_ENV=development

Add Config

Create a .env file and add following configs (see .sample-env),

AXIOMS_DOMAIN=<your-axioms-slug>.axioms.io
AXIOMS_AUDIENCE=<your-axioms-resource-identifier>

Run flask

flask run

Test using Postman

Postman collection is included in this repository. Import the collection in your Postman, setup environment variables host (i.e. localhost:5000) and access_token (you can obtain from your client) and test these APIs.

Documentation

See documentation for axioms-flask-py.

Deploy to Heroku

You will need to provide Axioms domain and Axioms audience to complete deployment.

Deploy

Edit sample-python-flask

About

Flask APIs Sample using Axioms. Secure your Flask APIs using Axioms Authentication and Authorization.

sample-python-flask-app.herokuapp.com/

Resources

Readme
MIT license
Activity
Custom properties

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.