Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Flask BlueLogin module

Project Description


Flask-bluelogin provides user session management for Flask by blueprint component

It use flask-login module


pip install flask-bluelogin


git clone
cd flask-bluelogin
python install


from flask import Flask, request, current_app
from flask_bluelogin import BlueLogin, User, Users, check_login
import logging

app = Flask(__name__)
app.secret_key = 'super secret string'
app.register_blueprint(BlueLogin(url_prefix="/api", ui_testing=True))
User(id="fred", password="fred").save()
Users().add_user(User(id='admin', password='passadmin', groups=['admin',]))
Users().add_user(User(id='test', password='passtest'))

def hello():
    return "Hello World!"

def check():
    return "You are authentified"

def admin():
    return "you are admin"

if __name__ == "__main__":   #TODO

You can use BlueLogin.add_check_login for add control login on endpoint

You can use ui for testing on


V. 0.2.7

  • hotfix on path ui

V. 0.2.5

  • add ws current

V. 0.2.4

  • hotfix requirement

V. 0.2.2

  • add param url_prefix in blueprint

V. 0.2.1

  • optimize import from module

V. 0.2.0

  • add dynamic decorator check_login for route other module
  • generate secret_key
  • add function add_group in User
  • add functionnality Users as generic
  • add function save in User
  • add property active for user

V. 0.1.0

  • init
  • add group management
  • add blueprint module

Release History

This version
History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(965.5 kB) Copy SHA256 Hash SHA256
Source None Sep 2, 2017

Supported By

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 Google Google Cloud Servers DreamHost DreamHost Log Hosting