Is it possible to configure an older Owin WebAPI project to use identityserver4?
In the Owin Startup.cs file there is an IAppBuilder app object, however the UseIdentityServerAuthentication extension method requires an IApplicationBuilder app. This seems to be a difference between .NET Core and Owin.
How do I get UseIdentityServerAuthentication to work with the old IAppBuilder?
public class Startup
{
public void Configuration(IAppBuilder app)
{
// Obviously this won't work. I added this to help explain the issue.
IApplicationBuilder app2 = (IApplicationBuilder)app;
app2.UseIdentityServerAuthentication(
new IdentityServerAuthenticationOptions()
{
Authority = "http://localhost:8080",
RequireHttpsMetadata = false,
ApiName =" apiName"
});
}
}