Skip to main content

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)

Metadata

Release files for dash-flask-keycloak 1.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dash-flask-keycloak 1.3.1
File Size Uploaded
dash_flask_keycloak-1.3.1.tar.gz 8.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dash-flask-keycloak 1.3.1
File Interpreter ABI Platform
dash_flask_keycloak-1.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 17.5 kB

Release files / dash_flask_keycloak-1.3.1.tar.gz

Download URL dash_flask_keycloak-1.3.1.tar.gz
Size 8.5 kB
Tags Source
SHA-256 checksum
How to use checksums
1afde5cb799a57a6d75b2e90499df65645c45d4409da9bd5ae74a844ca1375aa
BLAKE2b-256 checksum
How to use checksums
61284e34ca38236ee4a609966f746f5f64a7a3dcedc9973ca2a00a7d31c4c359
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.10

Release files / dash_flask_keycloak-1.3.1-py3-none-any.whl

Download URL dash_flask_keycloak-1.3.1-py3-none-any.whl
Size 9.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
651cc9582f0c387662e8326b651134b7d4c417d44d665c460d47b6d6a4337e62
BLAKE2b-256 checksum
How to use checksums
3ad2bc0f8e124878b84bdee4804762620546072ea845b09e02a1be41c9f678f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.10

Release history Release notifications | RSS feed

This release

1.3.1 This release

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page