about summary refs log tree commit diff
path: root/modules/services/akkoma/0001-fix-scope.patch
blob: a0f8780820684b66fbc25b3b654fd65d3124f75f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From a72bafca8fae2d0663127fa07f44284598a3631a Mon Sep 17 00:00:00 2001
From: sefidel <contact@sefidel.net>
Date: Tue, 20 Feb 2024 18:52:01 +0900
Subject: [PATCH] fix scope

Signed-off-by: sefidel <contact@sefidel.net>
---
 lib/ueberauth/strategy/keycloak.ex | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/ueberauth/strategy/keycloak.ex b/lib/ueberauth/strategy/keycloak.ex
index fa6e84b..413b3d5 100644
--- a/lib/ueberauth/strategy/keycloak.ex
+++ b/lib/ueberauth/strategy/keycloak.ex
@@ -71,8 +71,8 @@ defmodule Ueberauth.Strategy.Keycloak do
   require Logger
 
   use Ueberauth.Strategy,
-    uid_field: :id,
-    default_scope: "api read_user read_registry",
+    uid_field: :preferred_username,
+    default_scope: "openid profile email",
     oauth2_module: Ueberauth.Strategy.Keycloak.OAuth
 
   alias Ueberauth.Auth.Info
-- 
2.43.0