Skip to content

Commit

Permalink
Retrieves the tenant from the cache via the tenants part
Browse files Browse the repository at this point in the history
Fixes: SIRI-1039
  • Loading branch information
idlira committed Dec 16, 2024
1 parent 9399897 commit fe31cc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/sirius/biz/tenants/SAMLController.java
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ protected List<T> querySAMLTenants() {

private void verifyUser(SAMLResponse response, UserInfo user) {
U account = user.getUserObject(getUserClass());
T tenant = account.getTenant().fetchValue();
T tenant = (T) tenants.fetchCachedRequiredTenant(account.getTenant().getIdAsString());

if (!checkIssuer(tenant, response)) {
throw Exceptions.createHandled().withSystemErrorMessage("SAML Error: Issuer mismatch!").handle();
Expand Down

0 comments on commit fe31cc6

Please sign in to comment.