core: use correct .evaluate implementation for testing PropertyMappings (#8459)

* core: use correct .evaluate implementation for testing PropertyMappings

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* only dispatch refresh if modal is allowed to close

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* sigh...bump max allowed node memory

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

---------

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens L
2024-02-08 22:48:55 +01:00
committed by GitHub
parent aa8dc94a97
commit 0b8678f7ee
5 changed files with 30 additions and 20 deletions

View File

@ -84,12 +84,14 @@ export class PolicyTestForm extends Form<PolicyTestRequest> {
user: this.request?.user || 0,
context: {
ldap: {
name: "test-user",
objectSid: "S-1-5-21-2611707862-2219215769-354220275-1137",
objectClass: "person",
displayName: "authentik test user",
sAMAccountName: "sAMAccountName",
distinguishedName: "cn=user,ou=users,dc=goauthentik,dc=io",
givenName: "test",
name: "test-user",
objectClass: "person",
objectSid: "S-1-5-21-2611707862-2219215769-354220275-1137",
sAMAccountName: "sAMAccountName",
sn: "user",
},
},
};

View File

@ -36,15 +36,15 @@ export class ModalForm extends ModalButton {
if (this.closeAfterSuccessfulSubmit) {
this.open = false;
form?.resetForm();
this.dispatchEvent(
new CustomEvent(EVENT_REFRESH, {
bubbles: true,
composed: true,
}),
);
}
this.loading = false;
this.locked = false;
this.dispatchEvent(
new CustomEvent(EVENT_REFRESH, {
bubbles: true,
composed: true,
}),
);
})
.catch((exc) => {
this.loading = false;