Hello,
My app uses OAuth to connect to two services. To get the authorization ocde, originally, they both allowed a URI in the form of "com.SmartVentsTwo://auth". Now, the second one changed and requires that the URI be a complete URL starting with HTTPS.
Needless to say the second stopped working. I read several different articles and posts about this difference telling me a range of things to do from simply adding "https://com.SSmarVentsTwo://auth" to the URL types in the project settings, to creating a redirect from my website. It would seem the most secure would be the former since it doesn't require extra jumps, but it didn't work. When I tried it, after logging in and authorizing the request, i got a "could not find server" error.
What are the exact steps I need to follow to accommodate the change? (Thank you very much!!)
Creating a redirect from your website is generally the preferred approach, as it gives you the most control over what happens. However if you're only targeting iOS 17.4/macOS 14.4 and newer, you can now use ASWebAuthenticationSession.Callback to use an https URL directly instead of a custom scheme.