This is my code. See where the code breaks down in the area below. Pretty much copy from how you say we can do it from the instructions you give. But for some reason it does not work.
guard var oauthUrlComp = URLComponents(string: "https://zoom.us/oauth/authorize") else { return }
let codeChallenge = URLQueryItem(name: "code_challenge", value: codeChallengeHelper.getCodeChallenge())
let codeChallengeMethod = URLQueryItem(name: "code_challenge_method", value: "S256")
let responseType = URLQueryItem(name: "response_type", value: "code")
let clientId = URLQueryItem(name: "client_id", value: "MYSPECIALCODE") // TODO: Enter your OAuth client ID.
let redirectUri = URLQueryItem(name: "redirect_uri", value: "https://myApp.com") // TODO: Enter the redirect URI of your OAuth app.
oauthUrlComp.queryItems = [responseType, clientId, redirectUri, codeChallenge, codeChallengeMethod]
let scheme = "myApp.com" // TODO: Enter the custom scheme of the redirect URI of your OAuth app.
guard let oauthUrl = oauthUrlComp.url else { return }
This is where the error occurs. callbackUri = NIL:
I reached out to Apple Code Level Support. They responded as follows (ticket number: 811071814):
Thanks for contacting Developer Technical Support. This question generated much discussion on our team, and after investigating, we’ve determined that this is an issueto address with Zoom.
From what I’ve been able to determine after a brief look at Zoom’s documentation, they only support the http or https URIs for their oauth method of authentication. … Please contact Zoom for further assistance on implementing their APIs.