From 011b68c179c7d09557e147e21956deda1e23c58e Mon Sep 17 00:00:00 2001 From: decentral1se Date: Fri, 11 Jun 2021 17:48:07 +0200 Subject: [PATCH] Add this scope --- keycloak_collective_portal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keycloak_collective_portal.py b/keycloak_collective_portal.py index 3a6e207..857fe8d 100644 --- a/keycloak_collective_portal.py +++ b/keycloak_collective_portal.py @@ -21,7 +21,7 @@ templates = Jinja2Templates(directory="templates") oauth = OAuth() oauth.register( name="keycloak", - client_kwargs={"scope": "openid profile email"}, + client_kwargs={"scope": "openid profile email offline_access"}, client_id=KEYCLOAK_CLIENT_ID, client_secret=KEYCLOAK_CLIENT_SECRET, authorize_url=f"https://{KEYCLOAK_DOMAIN}/auth/realms/{KEYCLOAK_REALM}/protocol/openid-connect/auth",