Extension providing Keycloak integration via the python-keycloak package to the Dash/Flask app
Project description
This purpose of this library is to provide seamless integration of Plotly Dash or Flask with Keycloak via the dash-flask-keycloak package.
Prerequisites
Prior to using this library, a Keycloak server must be setup. Please refer to the official documentation,
https://www.keycloak.org/
After setting up the server, create a realm and a client for the application.
In the clients settings, write redirect URI as "your_app_url/keycloak/callback" .
Installation
pip install dash-flask-keycloak
Motivation
The original project was abandoned and doesn't work with Keyloack higher than 17.0 version.
Also were added:
-
Session state control
-
Access token validation
-
Session lifetime (It's recommended to set "session_lifetime" in app less or equal to a minimal value among SSO Session Idle, SSO Session Max in Keyloak realm settings)
You can find examples in dash-flask-keycloak/examples
(Was developed and tested on Ubuntu 20.04, Python 3.8.10 and Keycloak 21.1.1)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for dash-flask-keycloak-1.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 906cd7a1923bfd65fe7c1ebc7a441e018a454a2c7042f982b5044d48d5407a88 |
|
MD5 | dced4501cf2bc9ffcb281ed08b622d73 |
|
BLAKE2b-256 | 31d394fb7ab4cfbc806e2870d8fabe92d36d60e580685c40ae5536f571ae0d57 |
Hashes for dash_flask_keycloak-1.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f1afa13265cdcf28467769f4d3e2634f9f3e183f3154bb0ac5e2f87a2f85fa5 |
|
MD5 | 4518047be40f80dbd84035ae30dc05ee |
|
BLAKE2b-256 | db94c773e03f789e1729917b6b67c22669a5d34deb1ddff26f367b8d3b3a4c55 |