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
352
votes
4 answers

How to explain Katana and OWIN in simple words and uses?

I have read many articles about the OWIN and Katana projects, but I could not get the whole picture of it. For a normal web developer who uses ASP.NET: What exactly is OWIN and what problems does it solve (in simple words). What is its relation to…
ebram khalil
  • 8,252
  • 7
  • 42
  • 60
272
votes
5 answers

When should I use OWIN Katana?

I am new to OWIN and Katana. I really don't get why I should use OWIN, while I can use IIS. To simplify, my question is: What do I lose if I skip learning OWIN and use IIS for my websites? I googled but there is not a simple explanation. There is…
Seyed Morteza Mousavi
  • 6,855
  • 8
  • 43
  • 69
169
votes
9 answers

ASP.NET_SessionId + OWIN Cookies do not send to browser

I have a strange problem with using Owin cookie authentication. When I start my IIS server authentication works perfectly fine on IE/Firefox and Chrome. I started doing some testing with Authentication and logging in on different platforms and I…
Piotr Stulinski
  • 9,241
  • 8
  • 31
  • 46
60
votes
4 answers

Distinction between Kestrel and Katana

My understanding is currently you can self host WebAPI using Katana, and MVC will have this capability in a future version. Essentially Katana will be a hosting option available to both MVC and WebAPI. Kestrel has entered the picture, and I see a…
AaronLS
  • 37,329
  • 20
  • 143
  • 202
54
votes
3 answers

What is the purpose of the extension method CreatePerOwinContext in OWIN implementation by Microsoft

I am a newbie in ASP.NET, and currently learning ASP.NET Identity. I know it's built on top of OWIN implementation by Microsoft, and I am also still learning that too. So, I came across the extension method CreatePerOwinContext in the Owin startup…
Next Developer
  • 1,249
  • 1
  • 10
  • 20
52
votes
1 answer

UseOAuthBearerTokens vs UseOAuthBearerAuthentication

In our Startup class, I have configured the following auth server options: OAuthAuthorizationServerOptions OAuthServerOptions = new OAuthAuthorizationServerOptions() { AllowInsecureHttp = true, TokenEndpointPath = new…
Dave New
  • 38,496
  • 59
  • 215
  • 394
40
votes
2 answers

OWIN and Katana, why decouple the application from the server?

I dont quite get this.. sure its cool to be able to self-host an application and it might be nice since if the IIS goes down for any reason... then all your sites goes down.. but if they are self-hosted then they live there own life in there own…
Inx
  • 2,364
  • 7
  • 38
  • 55
39
votes
3 answers

Global exception handling in OWIN middleware

I'm trying to create a unified error handling/reporting in ASP.NET Web API 2.1 Project built on top of OWIN middleware (IIS HOST using Owin.Host.SystemWeb). Currently I used a custom exception logger which inherits from…
39
votes
4 answers

Unhandled Exception Global Handler for OWIN / Katana?

What is the proper way to implement a global Exception catcher-handler in a Katana (OWIN) implementation? In a self-hosted OWIN/Katana implementation running as an Azure Cloud Service (worker role), I placed this code in a Middleware: throw new…
Snowy
  • 5,942
  • 19
  • 65
  • 119
38
votes
14 answers

No owin.Environment item was found in the context

Microsoft recently introduced new ASP.NET Identity - replacement for old (Simple)Membership. Unfortunately, I can't use this new membership system in my old project because it throws System.InvalidOperationException: No owin.Environment item was…
graycrow
  • 3,675
  • 6
  • 26
  • 28
37
votes
2 answers

Is there Application_End from Global.asax in Owin?

Startup.cs is a new way to initialize your app instead of Application_Start in Global.asax and it's fine. But is there a place to put my teardown logic, for example this: public class WebApiApplication : System.Web.HttpApplication { protected void…
2ooom
  • 1,760
  • 1
  • 23
  • 37
36
votes
5 answers

Pass command-line arguments to Startup class in ASP.NET Core

I have arguments passed in via the command-line private static int Main(string[] args) { const string PORT = "12345" ; var listeningUrl = $"http://localhost:{PORT}"; var builder = new WebHostBuilder() .UseStartup() …
BanksySan
  • 27,362
  • 33
  • 117
  • 216
36
votes
1 answer

OWIN Authentication Pipeline To Use Katana Middleware Correctly?

I'm looking to use WsFederation Authentication against an internal ADFS 2 service and to use the OWIN authentication pipeline . What is considered to be the order in which middleware should be hooked up and which modules are required in various…
Tom Tregenna
  • 1,281
  • 1
  • 13
  • 23
36
votes
3 answers

Web API 2 OWIN Bearer Token purpose of cookie?

I am trying to understand the new OWIN Bearer Token authentication process in the Single Page App template in MVC 5. Please correct me if I'm wrong, for the OAuth password client authentication flow, Bearer Token authentication works by checking…
gavin
  • 1,276
  • 1
  • 11
  • 17
35
votes
2 answers

Migrating from OWIN to ASP.NET Core

When moving from OWIN to ASP.NET Core, I've found a bit of information about dependencies to migration, but I've not found information about these other topics: The middle-ware pipeline. How is this different, or not? The DelegatingHandler…
Brent Arias
  • 29,277
  • 40
  • 133
  • 234
1
2 3
28 29