File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
libs/client-registration/src Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -849,8 +849,7 @@ export class ClientRegistrationService {
849849
850850 attributes . ecosystem_access = [ JSON . stringify ( ecosystemAccess ) ] ;
851851
852- // Update user in Keycloak
853- const updatePayload = { attributes } ;
852+ const updatePayload = { ...currentUser , attributes } ;
854853 this . logger . log ( `[updateUserEcosystemAccess] Sending update to Keycloak...` ) ;
855854
856855 await this . commonService . httpPut ( userUrl , updatePayload , this . getAuthHeader ( token ) ) ;
@@ -1022,7 +1021,7 @@ export class ClientRegistrationService {
10221021 this . logger . log ( `[removeUserEcosystemAccess] Removed ecosystem_access attribute (empty)` ) ;
10231022 }
10241023
1025- const updatePayload = { attributes } ;
1024+ const updatePayload = { ... currentUser , attributes } ;
10261025 this . logger . log ( `[removeUserEcosystemAccess] Sending update to Keycloak...` ) ;
10271026
10281027 await this . commonService . httpPut ( userUrl , updatePayload , this . getAuthHeader ( token ) ) ;
You can’t perform that action at this time.
0 commit comments