Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/flask-extensions/Flask-SimpleLogin
Simple Login - Login Extension for Flask - maintainer @cuducos
https://github.com/flask-extensions/Flask-SimpleLogin
auth authentication flask flask-extension flask-extensions flask-login flask-plugins hacktoberfest login
Last synced: 3 months ago
JSON representation
Simple Login - Login Extension for Flask - maintainer @cuducos
- Host: GitHub
- URL: https://github.com/flask-extensions/Flask-SimpleLogin
- Owner: flask-extensions
- License: mit
- Created: 2017-08-23T22:29:20.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2024-10-10T17:55:05.000Z (4 months ago)
- Last Synced: 2024-10-29T17:39:44.822Z (4 months ago)
- Topics: auth, authentication, flask, flask-extension, flask-extensions, flask-login, flask-plugins, hacktoberfest, login
- Language: Python
- Homepage:
- Size: 243 KB
- Stars: 199
- Watchers: 10
- Forks: 43
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
- awesome-flask - Flask-SimpleLogin - Authentication. (Third-Party Extensions / Auth)
- jimsghstars - flask-extensions/Flask-SimpleLogin - Simple Login - Login Extension for Flask (Python)
- best-of-web-python - GitHub - 21% open · ⏱️ 18.08.2023): (Authorization & Authentication)
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 SimpleLoginapp = 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!