title: ADAL iOS Redirect URI must be http(s)?
body: <p>I'm working to get ADAL auth working in my iOS app (Xcode 8, running on iOS 10) using the latest version of the ADALiOS library (2.2.5) and have configured the authContext according to the <a href="https://github.com/AzureAD/azure-activedirectory-library-for-objc" rel="nofollow">documentation</a>, but I'm  receiving the following error:</p>
  
  <pre><code>AADSTS50011: Reply address 'x-msauth-&lt;appname&gt;://&lt;app bundle id&gt;/' 
  specified by the request is not a valid URL. Allowed schemes: 'http, https'
  </code></pre>
  
  <p>This error message directly conflicts with the <a href="https://github.com/AzureAD/azure-activedirectory-library-for-objc#redirect-uri" rel="nofollow">documentation</a> which explicitly calls for the Redirect URI to be an iOS app URL, not a web URL:</p>
  
  <blockquote>
    <p>Redirect URI</p>
    
    <p>This adds extra requirements on your redirect URI. Your redirect URI must be in the proper form.</p>
  </blockquote>
  
  <pre><code>&lt;app-scheme&gt;://&lt;your.bundle.id&gt;
  ex: x-msauth-mytestiosapp://com.microsoft.mytestiosapp
  </code></pre>
  
  <blockquote>
    <p>This Redirect URI needs to be registered on the app portal as a valid redirect URI. Additionally a second "msauth" form needs to be registered to handle certificate authentication in Azure Authenticator.</p>
  </blockquote>
  
  <pre><code>msauth://code/&lt;broker-redirect-uri-in-url-encoded-form&gt;
  ex: msauth://code/x-msauth-mytestiosapp%3A%2F%2Fcom.microsoft.mytestiosapp
  </code></pre>
  
  <p>Is there config in the Azure portal that is missing which allows non-HTTP redirect URLs? Is this a bug in the ADALiOS library?</p>
  
  <p>Also, where does the encoded Redirect URI need to be registered? In the iOS app's .plist? In the Azure portal? Both?</p>