Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Flask-AuthApi is for simple API service authentication.
Python
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
flask_apiauth.egg-info
flask_apiauth
.gitignore
README.md
setup.py

README.md

Flask-AuthApi

Flask-AuthApi is for simple API service authentication.

Install

pip install https://github.com/kkzhang/Flask-AuthApi

Usage

It is quite simple.

  • Set API_AUTH_KEYS in flask config
  • Create a ApiAuth instance

    from flask.ext.apiauth import ApiAuth
    auth = ApiAuth(app)
    
  • Add decorator auth.auth_required() below app.route()

then you can add key=xxxx to url to authroize access

Something went wrong with that request. Please try again.