https://github.com/flask-extensions/flask-simplelogin
Simple Login - Login Extension for Flask
https://github.com/flask-extensions/flask-simplelogin
auth authentication flask flask-extension flask-extensions flask-login flask-plugins hacktoberfest login
Last synced: about 2 months ago
JSON representation
Simple Login - Login Extension for Flask
- Host: GitHub
- URL: https://github.com/flask-extensions/flask-simplelogin
- Owner: flask-extensions
- License: mit
- Created: 2017-08-23T22:29:20.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2024-10-30T18:21:04.000Z (about 1 year ago)
- Last Synced: 2025-05-15T07:07:45.506Z (9 months ago)
- Topics: auth, authentication, flask, flask-extension, flask-extensions, flask-login, flask-plugins, hacktoberfest, login
- Language: Python
- Homepage: https://flask-simple-login.readthedocs.io
- Size: 250 KB
- Stars: 205
- Watchers: 9
- Forks: 42
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/flask-extensions/Flask-SimpleLogin/actions/workflows/tests.yml)
[](https://pypi.org/project/flask_simplelogin/)
[](https://pypi.org/project/flask_simplelogin/)
[](https://pypi.org/project/flask_simplelogin/)
[](https://github.com/pallets/flask)
[](https://flask-simple-login.readthedocs.io/en/latest/?badge=latest)
# Login Extension for Flask
The simplest way to add login to flask!
## How it works
First, install it from [PyPI](https://pypi.org/project/flask_simplelogin/):
```console
$ pip install flask_simplelogin
```
Then, use it in your app:
```python
from flask import Flask
from flask_simplelogin import SimpleLogin
app = Flask(__name__)
SimpleLogin(app)
```
## **That's it!**
Now you have `/login` and `/logout` routes in your application.
The username defaults to `admin` and the password defaults to `secret` — yeah that's not clever, check the [docs](https://flask-simple-login.readthedocs.io/en/latest/?badge=latest) to see how to configure it properly!

Check the [documentation](https://flask-simple-login.readthedocs.io/en/latest/?badge=latest) for more details!