René's URL Explorer Experiment


Title: Add one-of functionality to verification of list claims · Issue #8 · auth0/.github · GitHub

Open Graph Title: Add one-of functionality to verification of list claims · Issue #8 · auth0/.github

X Title: Add one-of functionality to verification of list claims · Issue #8 · auth0/.github

Description: Add one-of functionality to verification of list claims Currently the verification of a claim implemented as a list using withArrayClaim() verifies the claim object using a containsAll()-function. Meaning the token must include all of th...

Open Graph Description: Add one-of functionality to verification of list claims Currently the verification of a claim implemented as a list using withArrayClaim() verifies the claim object using a containsAll()-function. ...

X Description: Add one-of functionality to verification of list claims Currently the verification of a claim implemented as a list using withArrayClaim() verifies the claim object using a containsAll()-function. ...

Opengraph URL: https://github.com/auth0/.github/issues/8

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add one-of functionality to verification of list claims","articleBody":"### Add one-of functionality to verification of list claims\r\n\r\nCurrently the verification of a claim implemented as a list using `withArrayClaim()` verifies the claim object using a `containsAll()`-function. Meaning the token must include _all_ of the elements present in the list input to `withArrayClaim()`.\r\n\r\n##### Problem:\r\nA \"one-of\" check when verifying a list claim is valid. (See for example: https://github.com/auth0/java-jwt/pull/472 and the verification of Issuer.  They both use the \"one-of\" verification. ) However it is now limited to only the hardcoded issuer and audience. \r\n\r\n##### Use-case:\r\nMy company uses company-roles as a a claim in the token. (\"roles: [\"admin\", \"team-member\"]). The roles I would like to verify a token with could be mutually exclusive, meaning a user only has one of them. For example: \"grant access if user has _either_ \"admin\" or \"consultant\" role. \r\n\r\n\r\n### Solution: Add \"anyOf\" methods in addition to the `withArrayClaim()`-methods.\r\n\r\nExtend the interface to also include `withAnyOfArrayClaim()` similar to the `withAnyOfAudience()` that will verify if the claim in the token contains _any_ of the elements in the given list. \r\n\r\n## Current workaround:\r\n\r\nCurrently we remove the `withArrayClaim()` from the JWTVerifier usage and rather validate the claim manually from the DecodedJWT. This has created some structural issues in the code and feels unsafe going outside the library for such an important validation step. \r\n\r\n### Additional context\r\n\r\nThis PR: https://github.com/auth0/java-jwt/pull/472 essentially makes the changes, but _only_ for audience. However audience is not the only valid \"one-of\" claim. \r\n\r\nI realise `withArrayClaim()` is to be deprecated in the next version: https://github.com/auth0/java-jwt/pull/403\r\nThis functionality will not easily be implemented with the map-based objects, as you'd have to specify each map-level as either a \"one-of\" or a \"exact-match\". \r\n\r\n\r\nI've seen multiple attempts at \"custom\" or \"map base\" validation functionality being denied. In my eyes this is not added functionality so much as it should have been available from the get-go when withArrayClaim was added.\r\n","author":{"url":"https://github.com/jorundoa","@type":"Person","name":"jorundoa"},"datePublished":"2021-02-10T08:01:05Z","url":"https://github.com/auth0/.github/issues/8"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:7c0176d3-d47f-aa7d-a2ac-f54dbcd36f09
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDB52:19EC1D:56E4AA:720749:6AFE6B24
html-safe-nonce1e1f42bb970b59ad255810c1b995f72dc39aa5004dbee19dc0a17e52d4514f3c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQjUyOjE5RUMxRDo1NkU0QUE6NzIwNzQ5OjZBRkU2QjI0IiwidmlzaXRvcl9pZCI6IjEzNDgxNjU4MTkxMjAzODA3MDgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacde86eb8c028fc1437e44f5c13d3d47a92a572b6b7f8b78211ba6530dcbb7c01a
hovercard-subject-tagissue:805275112
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/auth0/.github/8/issue_layout
twitter:imagehttps://opengraph.githubassets.com/114d6863dadd1045a8b05143e43f7df36374b6a08d778c12a25f6733d8e55553/auth0/.github/issues/8
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/114d6863dadd1045a8b05143e43f7df36374b6a08d778c12a25f6733d8e55553/auth0/.github/issues/8
og:image:altAdd one-of functionality to verification of list claims Currently the verification of a claim implemented as a list using withArrayClaim() verifies the claim object using a containsAll()-function. ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejorundoa
hostnamegithub.com
expected-hostnamegithub.com
Noneb3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86
turbo-cache-controlno-preview
go-importgithub.com/auth0/.github git https://github.com/auth0/.github.git
octolytics-dimension-user_id2824157
octolytics-dimension-user_loginauth0
octolytics-dimension-repository_id190060337
octolytics-dimension-repository_nwoauth0/.github
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id190060337
octolytics-dimension-repository_network_root_nwoauth0/.github
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4a10310af51a1bfffbedc4fd81cb582acf0cb0ff
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/auth0/.github/issues/8#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fauth0%2F.github%2Fissues%2F8
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fauth0%2F.github%2Fissues%2F8
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=auth0%2F.github
Reloadhttps://github.com/auth0/.github/issues/8
Reloadhttps://github.com/auth0/.github/issues/8
Reloadhttps://github.com/auth0/.github/issues/8
auth0https://github.com/auth0
.githubhttps://github.com/auth0/.github
Codehttps://github.com/auth0/.github
Issueshttps://github.com/auth0/.github/issues
Pull requests1 (1)https://github.com/auth0/.github/pulls
Actionshttps://github.com/auth0/.github/actions
Security and qualityhttps://github.com/auth0/.github/security
Insightshttps://github.com/auth0/.github/insights
https://github.com/auth0/.github
New issuehttps://github.com/login?return_to=https://github.com/auth0/.github/issues/8
New issuehttps://github.com/login?return_to=https://github.com/auth0/.github/issues/8
Add one-of functionality to verification of list claimshttps://github.com/auth0/.github/issues/8#top
https://github.com/jorundoa
jorundoahttps://github.com/jorundoa
on Feb 10, 2021https://github.com/auth0/.github/issues/8#issue-805275112
auth0/java-jwt#472https://github.com/auth0/java-jwt/pull/472
auth0/java-jwt#472https://github.com/auth0/java-jwt/pull/472
auth0/java-jwt#403https://github.com/auth0/java-jwt/pull/403
jorundoahttps://github.com/jorundoa
completedhttps://github.com/auth0/.github/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Feb 10, 2021https://github.com/auth0/.github/issues/8#event-4313351574
Sign up for freehttps://github.com/signup?return_to=https://github.com/auth0/.github/issues/8
Sign in to commenthttps://github.com/login?return_to=https://github.com/auth0/.github/issues/8
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.