How do I setup a valid on-premise ADFS URI?
<p>I have a .NET 4.6.2 Windows client application which needs to get an authentication token from our on-premise ADFS server and use it to call an ASP.NET Core REST API.  It's client name, id (GUID) and re-direct URI have been registered with ADFS.  I am using the latest ADAL (v3.13) library to facilitate the authentication.  I am attempting to get a token as demonstrated in the ADAL sample code like this:</p>

<pre><code>AuthenticationContext authenticationContext = new AuthenticationContext("https://&lt;adfs-sts-server&gt;/&lt;rest-api-host&gt;", false);
var result = authenticationContext.AcquireTokenAsync(&lt;rest-api-resource-uri&gt;, clientId, redirectUri, new PlatformParameters(PromptBehavior.Auto));
</code></pre>

<p>The <code>AcquireTokenAsync</code> call returns an error, saying: <em>The browser based authentication dialog failed to complete. Reason: The server has not found anything matching the requested URI (Uniform Resource Identifier).</em></p>

<p>Can anyone tell me:</p>

<ol>
<li>Is the "requested URI" refered to in the error the <code>https://&lt;adfs-sts-server&gt;/&lt;rest-api-host&gt;</code> or <code>&lt;rest-api-resource-uri&gt;</code>?</li>
<li>Do I need to register <code>&lt;rest-api-host&gt;</code> or <code>&lt;rest-api-resource-uri&gt;</code> with ADFS in some way, and if so how?</li>
<li>Any other information I need to get this to work?</li>
</ol>

<p>Thanks!
Peter</p>