Skip to content

Commit 8d10f1f

Browse files
committed
Adding logging for case of unsupported client Id
1 parent b319ae8 commit 8d10f1f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

libs/SalesforceSDKCore/SalesforceSDKCore/Classes/OAuth/DomainDiscoveryCoordinator.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ public class DomainDiscoveryCoordinator: NSObject {
9191
guard let domain = domain, let clientId = clientId else { return false }
9292
let isDiscovery = domain.lowercased().contains(DomainDiscovery.URLComponent.path.rawValue)
9393
let isSupportedClient = DomainDiscovery.supportedClientIds.contains(clientId)
94+
if isDiscovery && !isSupportedClient {
95+
SFSDKCoreLogger.e(classForCoder, message: "\(domain) is a discovery domain, but client ID '\(clientId)' is not supported.")
96+
}
9497
return isDiscovery && isSupportedClient
9598
}
9699
}

0 commit comments

Comments
 (0)