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
3
votes
1 answer

TypeLoadException from Mono

I'm trying to get Mono 3.4.0 working with some of the Microsoft OWIN components. I've started testing on Windows, but when my application handles an HTTP request, I get the following exception: System.TypeLoadException: Could not load type…
Paul Turner
  • 38,949
  • 15
  • 102
  • 166
3
votes
0 answers

Pause OWIN/WebAPI2 SelfHost service

Is there any way to programmatically change environment variables of OWIN/WebAPI2 host AFTER it started and already running? There are many samples for creating Windows Service with OWIN self-host app. Its really easy and straightforward: call…
justmara
  • 240
  • 2
  • 12
3
votes
2 answers

OWIN and Katana - What the middlewares really are?

When working with Katana Project we deal a lot with middlewares. On ASP.NET website they say As previously mentioned, when the server accepts a request from a client, it is responsible for passing it through a pipeline of OWIN components, which…
user1620696
  • 10,825
  • 13
  • 60
  • 81
3
votes
2 answers

MVC5 UseGoogleAuthentication mysterios method

It can be a dumb question, but I did not find answer on this on Internet. I see following code for MVC5 and oAuth app.UseFacebookAuthentication app.UseGoogleAuthentication(); However, I don’t see any method called UseGoogleAuthentication on app…
NetMagician
  • 191
  • 2
  • 6
3
votes
1 answer

What are the things missing in Owin/Katana which is available in ASP.NET?

I am looking to build a small ASP.NET application using WebAPI and a html front-end, on .NET 4.0. I need to support authentication, authorization, data access (EF), logging / tracing. It can be an intranet/internet application, so it should support…
Dhana Krishnasamy
  • 2,126
  • 17
  • 36
3
votes
3 answers

Microsoft.AspNet.Identity Source Code Availability

Can anybody tell me, where I can find source code of Microsoft.AspNet.Identity.Core and Microsoft.AspNet.Identity.EntityFramework packages?
user1826289
3
votes
1 answer

OWIN Change Response Server Identity?

I have a simple OWIN Middleware at the end of a chain, and I am setting the Server header value like this: myiowincontext.Response.Headers.Remove("Server"); myiowincontext.Response.Headers.Set("Server" ,"owin"); return…
Snowy
  • 5,942
  • 19
  • 65
  • 119
3
votes
1 answer

OWIN Stop Processing Based on Condition?

I have the below code in my OWIN Startup class: myiapbuilder.Map("/something/something", doit => { doit.Use(); doit.Use(); doit.Use(); }); If a condition occurs that I don't like in pipepart1, I would…
Snowy
  • 5,942
  • 19
  • 65
  • 119
2
votes
0 answers

How to configure OWIN Web API 1 via IAppBuilder

TL;DR: How do I configure OWIN Web API 1 via a StartUp class or alternatively use the HttpSelfHostServer with the static files extension? I have a working self-hosted OWIN Web API 2 project, which I'd like to downgrade to .Net 4.0 - I'd prefer not…
kiwiwings
  • 3,386
  • 1
  • 21
  • 57
2
votes
0 answers

Jwt type won't load alongside integrated twilio

I have integrated twilio and it has updated packages of jwt and now i am getting error for this UseJwtBearerAuthentication() method. How can i resolved this error as i cannot downgrade my packages since it has a dependency for twilio? private…
Jayant Belekar
  • 243
  • 1
  • 3
  • 9
2
votes
1 answer

Custom Message for Expired Refresh Token WebApi

Instead of the usual response of Status : 400 and body message of "Error" : "invalid_client" when the token has expired, are there any methods of changing the status code and body to display something else? Currently, I've managed to do something…
Jeremy Loh
  • 175
  • 1
  • 9
2
votes
0 answers

SSL certification authorization in OWIN Katana

I have a requirement to develop a lightweight Web API, which shall get the request message from client, add it to the queue(MSMQ / DB) and reply with status code and the API should be developed in .net technology. Number of requests that the API…
Thavudu
  • 235
  • 3
  • 13
2
votes
2 answers

No signin id passed, IdentityServer3, using OpenIdConnectAuthenticationOptions

I'm trying to implement Quickbooks SSO provider with Katana middleware. app.UseOpenIdConnectAuthentication(new OpenIdConnectAuthenticationOptions... ... SignInAsAuthenticationType = signInAsType,//"idsrv.external" ... As a response I…
2
votes
0 answers

OWIN self-host : framework overhead?

I have a Self-Host OWIN http server basing on Microsoft.Owin.SelfHost v3.1.0 encountering performance issue. There are only a few hundreds requests but CPU went to 100% and the server cannot serve more requests. All my methods are asynchronous and…
Mr.Wang from Next Door
  • 13,670
  • 12
  • 64
  • 97
2
votes
0 answers

Owin: understand OwinHttpListener.SetRequestProcessingLimits

var owinHttpListener = (OwinHttpListener)appBuilder.Properties["Microsoft.Owin.Host.HttpListener.OwinHttpListener"]; int maxAccepts, maxRequests; maxAccepts = Int32.MaxValue; //Default = 5 * ProcCount maxRequests =…
Mr.Wang from Next Door
  • 13,670
  • 12
  • 64
  • 97