diff --git a/various/clients/Owin/SimpleOwinApi/SimpleApi.csproj b/various/clients/Owin/SimpleOwinApi/SimpleApi.csproj
index 055c1c6b..45c201cf 100644
--- a/various/clients/Owin/SimpleOwinApi/SimpleApi.csproj
+++ b/various/clients/Owin/SimpleOwinApi/SimpleApi.csproj
@@ -36,86 +36,86 @@
- packages\IdentityModel.6.0.0\lib\net472\IdentityModel.dll
+ ..\packages\IdentityModel.6.0.0\lib\net472\IdentityModel.dll
- packages\Microsoft.Bcl.AsyncInterfaces.6.0.0\lib\net461\Microsoft.Bcl.AsyncInterfaces.dll
+ ..\packages\Microsoft.Bcl.AsyncInterfaces.6.0.0\lib\net461\Microsoft.Bcl.AsyncInterfaces.dll
- packages\Microsoft.IdentityModel.JsonWebTokens.5.3.0\lib\net461\Microsoft.IdentityModel.JsonWebTokens.dll
+ ..\packages\Microsoft.IdentityModel.JsonWebTokens.5.3.0\lib\net461\Microsoft.IdentityModel.JsonWebTokens.dll
- packages\Microsoft.IdentityModel.Logging.5.3.0\lib\net461\Microsoft.IdentityModel.Logging.dll
+ ..\packages\Microsoft.IdentityModel.Logging.5.3.0\lib\net461\Microsoft.IdentityModel.Logging.dll
- packages\Microsoft.IdentityModel.Tokens.5.3.0\lib\net461\Microsoft.IdentityModel.Tokens.dll
+ ..\packages\Microsoft.IdentityModel.Tokens.5.3.0\lib\net461\Microsoft.IdentityModel.Tokens.dll
- packages\Microsoft.Owin.4.2.2\lib\net45\Microsoft.Owin.dll
+ ..\packages\Microsoft.Owin.4.2.2\lib\net45\Microsoft.Owin.dll
- packages\Microsoft.Owin.Host.HttpListener.2.0.2\lib\net45\Microsoft.Owin.Host.HttpListener.dll
+ ..\packages\Microsoft.Owin.Host.HttpListener.2.0.2\lib\net45\Microsoft.Owin.Host.HttpListener.dll
- packages\Microsoft.Owin.Hosting.2.0.2\lib\net45\Microsoft.Owin.Hosting.dll
+ ..\packages\Microsoft.Owin.Hosting.2.0.2\lib\net45\Microsoft.Owin.Hosting.dll
- packages\Microsoft.Owin.Security.4.2.2\lib\net45\Microsoft.Owin.Security.dll
+ ..\packages\Microsoft.Owin.Security.4.2.2\lib\net45\Microsoft.Owin.Security.dll
- packages\Microsoft.Owin.Security.Jwt.4.2.2\lib\net45\Microsoft.Owin.Security.Jwt.dll
+ ..\packages\Microsoft.Owin.Security.Jwt.4.2.2\lib\net45\Microsoft.Owin.Security.Jwt.dll
- packages\Microsoft.Owin.Security.OAuth.4.2.2\lib\net45\Microsoft.Owin.Security.OAuth.dll
+ ..\packages\Microsoft.Owin.Security.OAuth.4.2.2\lib\net45\Microsoft.Owin.Security.OAuth.dll
- packages\Newtonsoft.Json.10.0.3\lib\net45\Newtonsoft.Json.dll
+ ..\packages\Newtonsoft.Json.10.0.3\lib\net45\Newtonsoft.Json.dll
- packages\Owin.1.0\lib\net40\Owin.dll
+ ..\packages\Owin.1.0\lib\net40\Owin.dll
- packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll
+ ..\packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll
- packages\System.IdentityModel.Tokens.Jwt.5.3.0\lib\net461\System.IdentityModel.Tokens.Jwt.dll
+ ..\packages\System.IdentityModel.Tokens.Jwt.5.3.0\lib\net461\System.IdentityModel.Tokens.Jwt.dll
- packages\System.Memory.4.5.4\lib\net461\System.Memory.dll
+ ..\packages\System.Memory.4.5.4\lib\net461\System.Memory.dll
- packages\Microsoft.AspNet.WebApi.Client.5.2.9\lib\net45\System.Net.Http.Formatting.dll
+ ..\packages\Microsoft.AspNet.WebApi.Client.5.2.9\lib\net45\System.Net.Http.Formatting.dll
- packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll
+ ..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll
- packages\System.Runtime.CompilerServices.Unsafe.6.0.0\lib\net461\System.Runtime.CompilerServices.Unsafe.dll
+ ..\packages\System.Runtime.CompilerServices.Unsafe.6.0.0\lib\net461\System.Runtime.CompilerServices.Unsafe.dll
- packages\System.Text.Encodings.Web.6.0.0\lib\net461\System.Text.Encodings.Web.dll
+ ..\packages\System.Text.Encodings.Web.6.0.0\lib\net461\System.Text.Encodings.Web.dll
- packages\System.Text.Json.6.0.0\lib\net461\System.Text.Json.dll
+ ..\packages\System.Text.Json.6.0.0\lib\net461\System.Text.Json.dll
- packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll
+ ..\packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll
- packages\System.ValueTuple.4.5.0\lib\net47\System.ValueTuple.dll
+ ..\packages\System.ValueTuple.4.5.0\lib\net47\System.ValueTuple.dll
- packages\Microsoft.AspNet.WebApi.Core.5.2.9\lib\net45\System.Web.Http.dll
+ ..\packages\Microsoft.AspNet.WebApi.Core.5.2.9\lib\net45\System.Web.Http.dll
- packages\Microsoft.AspNet.WebApi.Owin.5.2.9\lib\net45\System.Web.Http.Owin.dll
+ ..\packages\Microsoft.AspNet.WebApi.Owin.5.2.9\lib\net45\System.Web.Http.Owin.dll
@@ -142,11 +142,11 @@
-
+
This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.
-
+
\ No newline at end of file
diff --git a/various/clients/Owin/SimpleOwinApi/Startup.cs b/various/clients/Owin/SimpleOwinApi/Startup.cs
index 21a7bc2f..7e8e12b1 100644
--- a/various/clients/Owin/SimpleOwinApi/Startup.cs
+++ b/various/clients/Owin/SimpleOwinApi/Startup.cs
@@ -45,6 +45,7 @@ public void Configuration(IAppBuilder app)
private IEnumerable LoadKeys(string token, SecurityToken securityToken, string kid, TokenValidationParameters validationParameters)
{
var disco = _discoveryCache.GetAsync().ConfigureAwait(false).GetAwaiter().GetResult();
+ if (disco.IsError) { throw new Exception("Failed to retrieve discovery information - " + disco.Error); }
var keys = disco.KeySet.Keys
.Where(x => x.N != null && x.E != null)