Skip to content

Commit

Permalink
Merge pull request #59 from virtualidentityag/staging
Browse files Browse the repository at this point in the history
release
  • Loading branch information
tkuzynow authored May 14, 2024
2 parents f55db39 + f69e53a commit 71c8788
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,6 @@ private UsersWithRole addCustomAttributeToUsersWithRole(

var httpHeaders = new HttpHeaders();
httpHeaders.setContentType(MediaType.APPLICATION_JSON);
KeycloakLoginResponseDTO loginResponse = keycloakLoginService.loginAdminUser();
httpHeaders.setBearerAuth(loginResponse.getAccessToken());

Optional<RoleRepresentation> role = getRoleBy(roleName, httpHeaders);
if (role.isEmpty()) {
Expand All @@ -311,6 +309,8 @@ private UsersWithRole addCustomAttributeToUsersWithRole(
var pageNumber = 1;
var users = getUsersWithRoleName(roleName, getFirstElementIndex(pageNumber));
while (!users.isEmpty()) {
KeycloakLoginResponseDTO loginResponse = keycloakLoginService.loginAdminUser();
httpHeaders.setBearerAuth(loginResponse.getAccessToken());
var migratedUsersPage =
addCustomAttributeToUsers(customAttribute, value, httpHeaders, restTemplate, users);
pageNumber++;
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/weblate/mailing.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"name": "mailing",
"slug": "mailing",
"repo": "https://github.com/virtualidentityag/vi-saas-mailService.git",
"template": "src/main/resources/i18n/mailservice.en.json",
"template": "src/main/resources/i18n/mailing.en.json",
"new_base": "",
"vcs": "git",
"manage_units": true,
Expand Down

0 comments on commit 71c8788

Please sign in to comment.