Skip to content
This repository was archived by the owner on Jun 2, 2026. It is now read-only.

Allow more filtering of openid claims and user properties#9

Open
rowleya wants to merge 6 commits into
NrgXnat:masterfrom
UoMResearchIT:allow-more-filtering
Open

Allow more filtering of openid claims and user properties#9
rowleya wants to merge 6 commits into
NrgXnat:masterfrom
UoMResearchIT:allow-more-filtering

Conversation

@rowleya

@rowleya rowleya commented Jan 8, 2026

Copy link
Copy Markdown

The plugin allows filtering by email domain, which is useful, but my OpenID provider (Entra in this case) also provides some other things to filter on, which I think make it more secure (tenant-id in this case). To avoid this plugin being specific to a use case, I thought it was more useful to simply enable a regular expression on any token. This works in my testing for my case. The plugin config is simply updated with extra properties that start with regexFilter. e.g. for tenant-id in Entra, which is tid if I want to add this to filter to the manchester.ac.uk, nhs.net and icr.ac.uk tenants on the auth0 client, I can add:
openid.auth0.regexFilter.tid=37c354b2-85b0-47f5-b222-07b48d774ee3|c152cb07-614e-4abb-818a-f035cfa91a77|6138f7b9-eeea-47f7-a06b-b90a692f238e

This could also potentially remove the need for email domain filtering, since that could be simply done with:
openid.auth0.regexFilter.email=*\.manchester.ac.uk|*\.nhs.net|*\.icr.ac.uk

However as I suspect that use case is more common, it may be worth keeping that option too.

@rowleya

rowleya commented Jan 8, 2026

Copy link
Copy Markdown
Author

(I also updated some gradle things here as they weren't working for me - feel free to tell me you don't want those though and I can revert those changes)

@rowleya

rowleya commented Jan 8, 2026

Copy link
Copy Markdown
Author

Also closes UoMResearchIT/STARTER-KIT#63

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant