authentik icon indicating copy to clipboard operation
authentik copied to clipboard

Property Mapping Test Closes Immediately

Open gdeeble opened this issue 7 months ago • 4 comments

Issue: When attempting to test a property mapping to ensure the result is correct, the test window will pop up, allow you to set the username, group, and context, but the moment you click test, it will run, quickly(for about a second or less) show the response, then disappear with "Successfully sent test-request".

Steps to reproduce:

  1. Go to Property Mappings
  2. Create new property mapping
  3. Click "test" from the actions on the row
  4. Click "test" on the popup
  5. See error

Expected behavior: Clicking test will present the results and the window will remain open

Deployment details:

  • authentik version: 2025.4
  • Deployment: docker-compose

Logs:

  • No errors in Console for Chrome and Edge
  • No errors in Server or Worker containers for docker

It's as if there is an event triggering in the UI that is like clicking on another area of the page or that the test button is attempting to trigger a submit form request.

gdeeble avatar May 01 '25 11:05 gdeeble

Hi, thanks for opening this issue @gdeeble Just to make sure I understand the scope of this issue, could you please provide additional details such as the type of property mapping created and the expression used. Thanks

dominic-r avatar May 12 '25 01:05 dominic-r

@dominic-r - Hey Hey! It was a web hook mapping for Discord, but I even checked my "LDAP mapping" for testing which just adds a few LDAP attributes to my user and it does the same. It's not actually an error.. I realize I put see error (force of habit working in a UAT/TQA role for so many years), but it's actually just see the behavior. You can see for a split second the results line up exactly as they should be the popup immediately closes. It's like I clicked off the window after pressing test.

Here is my LDAP expression as the webhook doesn't seem to be right(trying blindly haha) and this one I know is right as it was working in 2025.4.2(previous version) return { "attributes": { "telephone_number": ldap.get("telephoneNumber"), "employee_id": ldap.get("employeeID"), "department": ldap.get("department"), "title": ldap.get("title"), "wireless_vlan": ldap.get("msDS-cloudExtensionAttribute1") } }

Cheers!

gdeeble avatar May 12 '25 02:05 gdeeble

I too am seeing this, and its pretty inconvenient. I have had to resort to taking a video as I click the button to test it in order to see the result. It seems like everything there is working other than it is closing right away. It does not seem to matter that property mapping you do it on. Built in ones, or custom ones. They all do this.

brandan-schmitz avatar May 19 '25 05:05 brandan-schmitz

Hi,

I have the exact same issue when using a RAC Property Mapping with only the following content :

return {"username": "bla", "password": "bla"}

Cheers,

M0ustach3 avatar Jun 04 '25 15:06 M0ustach3

Temporary workaround:

  1. Use browser devtools to record network traffic, filter for Fetch/XHR
  2. Use test dialog in authentik admin as usual
  3. open test/ request, there is the dialog data in json

macmoritz avatar Jun 26 '25 19:06 macmoritz

Confirmed, issue is still present in version 2025.8.0.

CrossEyeORG avatar Aug 21 '25 04:08 CrossEyeORG

I have the same issue running 2025.8.3

Pimmetje avatar Sep 24 '25 13:09 Pimmetje

If someone wanted to donate to get this issue expedited what would be this process?

JWynegar avatar Sep 27 '25 22:09 JWynegar