From a2c91db260ddfdac94c38544a7ce6ceb663bbde8 Mon Sep 17 00:00:00 2001 From: Andreas 'count' Kotes Date: Mon, 13 May 2024 10:12:07 +0200 Subject: [PATCH 1/2] fix: Keycloak OAuth2, get groups as role_keys per default (#2235) --- flask_appbuilder/security/manager.py | 1 + 1 file changed, 1 insertion(+) diff --git a/flask_appbuilder/security/manager.py b/flask_appbuilder/security/manager.py index a25b63ae72..82423cfa4c 100644 --- a/flask_appbuilder/security/manager.py +++ b/flask_appbuilder/security/manager.py @@ -695,6 +695,7 @@ def get_oauth_user_info( "first_name": data.get("given_name", ""), "last_name": data.get("family_name", ""), "email": data.get("email", ""), + "role_keys": data.get("groups", []), } # for Authentik if provider == "authentik": From 83ad6e9b10ddd12b5668c9cac3259987cc40c7fc Mon Sep 17 00:00:00 2001 From: Daniel Vaz Gaspar Date: Mon, 13 May 2024 15:31:06 +0100 Subject: [PATCH 2/2] chore: bump werkzeug to 3.0.3 (#2237) * chore: bump werkzeug to 3.0.3 * chore: bump werkzeug to 3.0.3 --- requirements/base.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/base.txt b/requirements/base.txt index 0e746b88ae..a7cd7822e9 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -127,7 +127,7 @@ typing-extensions==4.8.0 # via # flask-limiter # limits -werkzeug==3.0.1 +werkzeug==3.0.3 # via # flask # flask-appbuilder