Is there support for redirecting to iOS app scheme

If you watch Apple's WWDC 2017 Session 225 "What's New in Safari View Controller" at the 28:20 mark.

You will see that Apple recommends using SFSafariViewController for third party authorization. The way to handle the redirect_uri is by using a scheme (not http or https) that the app knows how to handle. So something like "myApp://authorize/ecobee"

The redirect url is handled in application:openURL:options:

Does the ecobee API support redirecting to app specific schemes like "myApp://authorize/ecobee"

Here is the Apple documentation about custom schemes.

Also it would be helpful if multiple redirects would be supported, similar to Nest.

That way we could transition to "myApp://authorize/ecobee" while the default "" still works for older versions of the app.

1 person has
this question
  • MarkK (API Architect) November 30, 2017 19:18
    We do not support app schemes for OAuth Code redirect. Doing so is a security issue where the app can use phishing to steal user credentials. Allowing that permits the app to perform a man-in-the-middle attack on the user login. Ecobee OAuth only allows valid domain redirects and is done through the browser's standard and secure way redirecting the user with certificate validation and warnings.

    For PIN authorization, the user must independently log into the ecobee site and again, not through a 3rd party in-application redirect to enter the pin and authorize the app.

    Nest uses redirect URLs for PIN authorization, whereas we do not.
  • (some HTML allowed)
    How does this make you feel?
    Add Image

    e.g. sad, anxious, confused, frustrated kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned