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.3.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1afde5cb799a57a6d75b2e90499df65645c45d4409da9bd5ae74a844ca1375aa |
|
MD5 | f98841daf151ed385877635f99957f4a |
|
BLAKE2b-256 | 61284e34ca38236ee4a609966f746f5f64a7a3dcedc9973ca2a00a7d31c4c359 |
Hashes for dash_flask_keycloak-1.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 651cc9582f0c387662e8326b651134b7d4c417d44d665c460d47b6d6a4337e62 |
|
MD5 | b10de4616e1f9407c40fb901aed61971 |
|
BLAKE2b-256 | 3ad2bc0f8e124878b84bdee4804762620546072ea845b09e02a1be41c9f678f7 |