Skip to content

Commit

Permalink
handle password management for preauth mode
Browse files Browse the repository at this point in the history
  • Loading branch information
marwanehcine committed Feb 19, 2024
1 parent f215192 commit 528bf7c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ public class CreateAccountUserCustomizer implements GeorchestraUserCustomizerExt
} else {
user = accounts.getOrCreate(mappedUser);
}
user.setIsExternalAuth("true");
loggedInUsers.put(auth, user);
return user;
}
return mappedUser;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ public class GeorchestraUserHeadersContributor extends HeaderContributor {
add(headers, "sec-ldap-remaining-days", Optional
.of(user.isPresent() && user.get().getLdapWarn() != null && user.get().getLdapWarn()),
user.map(GeorchestraUser::getLdapRemainingDays));
add(headers, "sec-external-authentication",
Optional.of(user.isPresent() && user.get().getIsExternalAuth().equals("true")),
user.map(GeorchestraUser::getIsExternalAuth));
});
};
}
Expand Down

0 comments on commit 528bf7c

Please sign in to comment.