mirror of
https://github.com/fosrl/pangolin.git
synced 2026-07-17 07:04:36 -05:00
[GH-ISSUE #2517] Unknown function: ontains() when using PocketId as authentication provider
#19267
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @svillar on GitHub (Feb 22, 2026).
Original GitHub issue: https://github.com/fosrl/pangolin/issues/2517
Describe the Bug
Trying to login in Pangolin using PocketId as auth provider. PocketId is properly configured as I'm already using it to authenticate 3 other web apps.
When logging into Pangolin I get the following error in pangolin logs
Most likely there is a
ontains()call instead of acontains()oneEnvironment
To Reproduce
Log in using PocketId
Expected Behavior
Login should succeed :)
@LaurenceJJones commented on GitHub (Feb 25, 2026):
This error triggered because the string that was passed into JMESpath was
ontains()instead of thecontains()function which is a user configured option from the auto provision section. Maybe when you were trying to setup the auto provision feature of pangolin you copied the example from the docs and missed theccharacter?https://docs.pangolin.net/manage/identity-providers/auto-provisioning#example-1-group-based-selection
However, when saving the fields pangolin should at least do a sanity check that the expression function you want to use can compile before leading to a runtime failure.
@oschwartz10612 commented on GitHub (Feb 25, 2026):
Thanks @LaurenceJJones thats probably it!
Will make sure we have a task to check the input better.
@svillar commented on GitHub (Feb 27, 2026):
Stupid me 🤦 that was it indeed. Thanks!