Questions tagged [katana]

Katana is a collection of projects for supporting OWIN with various Microsoft components.

Katana is a collection of projects for supporting OWIN (http://owin.org) with various Microsoft components. Currently it includes OWIN support for System.Web, System.Net.HttpListener, and WebApi.

Also included is a Katana.exe for running self-host servers (like HttpListener) from the command line.


Useful links


Related tags

425 questions
5
votes
1 answer

EntryPointNotFoundException in OWIN

I have created a console application in Visual Studio 2010 and installed nuget packages such as Microsoft.Owin.Hosting and Microsoft.Owin.Host.HttpListener for OWIN and configured like below namespace KatanaIntro { class Program { …
Jameel Moideen
  • 7,542
  • 12
  • 51
  • 79
5
votes
2 answers

OWIN Webapi app receiving "System.ArgumentException no conversion available..." when bundled with nuget

I'm attempting to setup a self-hosted OWin app (using VS2012) - I think it's close since I can run OwinHost.exe from the directory containing the .csproj and application serves from localhost:5000 correctly. I created a default nuspec file and added…
MikeW
  • 4,749
  • 9
  • 42
  • 83
5
votes
1 answer

Is it possible to use Katana to host an existing WebForms application within a WinForms application?

Recently I have read a lot about OWIN and Katana and also tried examples like "Use OWIN to Self-Host ASP.NET Web API". I am currently rather clueless about whether it is possible to use these technologies to host an existing WebForms ASP.NET…
Uwe Keim
  • 39,551
  • 56
  • 175
  • 291
5
votes
1 answer

Add cookies to Katana Hosted WebAPI with Basic Authentication

I have implemented a Basic Authentication Middleware for Katana (Code below). (My client is hosted on a cross domain then the actually API). The browser can skip the preflight request if the following conditions are true: The request method is GET,…
Poul K. Sørensen
  • 16,950
  • 21
  • 126
  • 283
4
votes
0 answers

Failing OpenID Connect middleware - how to debug?

I set up a very simple ASP.NET MVC 5 application that tries to authenticate a user through an OpenID provider in Authorization Code mode. I'm able to log in and the server returns a code in the redirect URL querystring and a nonce cookie. However,…
guillaume31
  • 13,738
  • 1
  • 32
  • 51
4
votes
2 answers

Public keys in OpenID Connect

I'm currently trying to use IdentityServer4 to build a single-signon experience for my users across different apps I have. They are all hosted in the same local network and no third-party apps authenticate with it. The client apps are still…
John
  • 6,693
  • 3
  • 51
  • 90
4
votes
4 answers

Compiler not resolving to expected extension method

I noticed today when trying to convert an inline lambda function to a closure so I could use the same lambda in multiple places. This will compile to the correct extension method: appBuilder.Use((ctx, next) => { Console.WriteLine("Test"); …
daniefer
  • 118
  • 1
  • 8
4
votes
1 answer

Does a self-hosted OWIN WebAPI server allow setting the max request size limit?

... I would have expected a simple config setting somewhere, but couldn't find anything. The suggestions I found involve writing some OwinMiddleware for it, which would check the Content-Length header, or, if that is missing (e.g. chunked message),…
Cristian Diaconescu
  • 34,633
  • 32
  • 143
  • 233
4
votes
2 answers

OWIN openid connect external login doesn't execute specified callback url

I am using owin openid connect authentication where the authentication provider is hosted on a separate domain. The authentication process works nicely. I am able to view restricted pages upon successful login at the identity server. But I want the…
TejSoft
  • 3,213
  • 6
  • 34
  • 58
4
votes
1 answer

Is Owin/Katana supposed to replace Web API?

When ASP.NET MVC came, Microsoft announced many times in many places that it wasn't supposed to replace ASP.NET Web Forms. In other words, it's just another technology that you might find useful, or you might use Web Forms in other…
Reza NA
  • 75
  • 8
4
votes
2 answers

Owin self host api throws exception: The format of the specified network name is invalid

I have a ASP.NET self-host web api, and I want it to listen on say http://77.176.132.62:51000. Things work just fine with http://127.0.0.1:51000, but as soon as I change it to the server's valid IP address and port, I get this exception: The format…
Nasseh
  • 429
  • 1
  • 4
  • 12
4
votes
1 answer

Business and Use Cases for using OWIN and Katana

actually i know there are topics and question of KATANA benefits and i know them but my question is what Katana can do for me on business side ? like why i should use WEB API as a separated module(middleware)? with which middleware it can be useful…
4
votes
1 answer

Use HttpPost for Logout in OWIN/Katana authentication manager

Is there a way to force the Katana authentication manager to call the Logout endpoint from IdentityServer3 with a HttpPost instead of a HttpGet method? I currently use this method to call the endsession endpoint from IdentityServer3 (according to…
SpecialHias
  • 119
  • 9
4
votes
2 answers

AuthenticationProperties.RedirectUri is not passed to Google in Challenge()

Within my web application I have registered Google as a single sign-on provider: app.UseGoogleAuthentication(new GoogleOAuth2AuthenticationOptions { ClientId = "8765.......apps.googleusercontent.com", ClientSecret = "Secret" }) My app…
EvilDr
  • 8,943
  • 14
  • 73
  • 133
4
votes
1 answer

Owin pipeline branches run all middleware at first stage-marker encountered

When creating an (unbranched) OWIN pipeline, stage-markers are respected. But when using a branched pipeline (with app.Map or app.MapWhen) all middleware in each branch runs at the stage of the first stage-marker encountered. Is there any way to use…
Appetere
  • 6,003
  • 7
  • 35
  • 46