From 45a0982874b8a4060b330a056f0486b08c020df8 Mon Sep 17 00:00:00 2001 From: Maarten de Waard Date: Wed, 20 Apr 2022 13:53:45 +0200 Subject: [PATCH] fix: roles in consent shoudl be role names, not Role objects --- web/login/login.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/login/login.py b/web/login/login.py index 30df69b..8f8f7e0 100644 --- a/web/login/login.py +++ b/web/login/login.py @@ -238,7 +238,7 @@ def consent(): .filter(AppRole.user_id == user.uuid) ) for role_obj in role_objects: - roles.append(role_obj.role) + roles.append(role_obj.role.name) current_app.logger.info(f"Using '{roles}' when applying consent for {kratos_id}")