Skip to content

kkzhang/Flask-AuthApi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Flask-AuthApi is for simple API service authentication.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages