Closed Widcket closed 1 year ago
LGTM - anything we want to update in EXAMPLES.md
around Organizations? e.g. the sample in there refers to YOUR_AUTH0_ORGANIZATION_ID
specifically, I've seen others change similar examples to something like YOUR_AUTH0_ORGANIZATION_ID_OR_NAME
.
@stevehobbsdev Good catch! Added it in https://github.com/auth0/Auth0.swift/pull/782/commits/e7263c3509029117b6d9e52745da914ce570280f
📋 Changes
This PR adds a new ID token claim validator,
IDTokenOrgNameValidator
, which is only used if theorganization
value passed on login does not start withorg_
(meaning, it's not an organization ID). Otherwise, the existingIDTokenOrgIDValidator
is used instead.🎯 Testing
Besides adding unit tests, the changes were tested manually using a simulator running iOS 17.0, with Xcode 14.3 (14E222b).