File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
src/main/java/fr/insee/genesis/configuration/auth/security Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -144,12 +144,18 @@ public Collection<GrantedAuthority> convert(Jwt source) {
144144 .toList ();
145145
146146 // 🔹 4. Transforms in GrantedAuthority
147- return Collections . unmodifiableCollection (
147+ List < GrantedAuthority > authorities =
148148 claimedRoles .stream ()
149149 .map (s -> (GrantedAuthority ) () -> ROLE_PREFIX + s )
150- .toList ()
151- );
150+ .toList ();
152151
152+ //TODO put on debug once genesis bug is corrected
153+ log .info ("Authorities extracted from JWT: {}" ,
154+ authorities .stream ()
155+ .map (GrantedAuthority ::getAuthority )
156+ .toList ());
157+
158+ return authorities ;
153159 } catch (ClassCastException e ) {
154160 // role path not correctly found, assume that no role for this user
155161 return List .of ();
You can’t perform that action at this time.
0 commit comments