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

What does a Visual Studio 2013 Project makes it a katana Project?

I just started my struggle to understand owin and katana. Following the Asp.Net tutorial I created a blank asp.net project in VS2013 and added a Nuget Package reference to Microsoft.Owin.Host.SystemWeb. The project I created is bear blank as…
VivekDev
  • 20,868
  • 27
  • 132
  • 202
6
votes
2 answers

Owin only serve files in certain folder

So I am playing around with Owin and Katana and I want to serve static files in my public folder. I have a Content folder with stylesheets and a scripts folder. My Startup: public void Configuration(IAppBuilder app) { #if DEBUG …
user1613512
  • 3,590
  • 8
  • 28
  • 32
6
votes
1 answer

Web API Authorization with ClientId and ClientSecret

Im using OWIN/Katana middleware in my web api authorization. The flow. I am issuing acess_token and refresh_token to the requesting client. The access_token has short-lived lifespan while the refresh_token has long expiry. As usual, if the…
Linc Abela
  • 797
  • 2
  • 12
  • 26
6
votes
1 answer

Internals of OWIN and IIS Integration

I am interested in knowing how IIS invokes the OWIN pipeline during the application lifecycle. I tried to know this and found that the assembly Microsoft.Owin.Host.SystemWeb is responsible for this, but a diagram explaining this will be very…
Saravanan
  • 7,637
  • 5
  • 41
  • 72
6
votes
1 answer

Is GlobalConfiguration in System.Web.Http.WebHost compatible with Owin?

I'm currently moving a WebApi 1 to a WebApi 2 project with OWIN. In this piece of code GlobalConfiguration is in System.Web.Http.WebHost. public class HandlerErrorFilterAttribute : ExceptionFilterAttribute { public override void…
JuChom
  • 5,717
  • 5
  • 45
  • 78
6
votes
1 answer

Converting HttpRequestMessage to OwinRequest and OwinResponse to HttpResponseMessage

I have a web API message handler MyHandler that I want to run in OWIN pipeline as a middleware. So configuring the handler like this. public class Startup { public void Configuration(IAppBuilder app) { app.UseHttpMessageHandler(new…
5
votes
0 answers

OWIN OpenId Connect auth and Role-based Authorization

I have a WebForms application (not MVC, not WebApi) which I'm porting to an OpenID Connect external authentication (.net 4.7.2, latest OWIN NuGet packages). This web app uses role-based authorization in order to prevent unauthorized users to access…
5
votes
1 answer

Automatic code( authorization code ) redemption using latest version of Katana DLLs in openId authorization code flow

From the recent release and conversation below, it says that now Katana(4.1.0) supports code-flow with automatic code redemption(that meaning we do not have call tokenendpoint explicitly to redeem the code for idtoken, accesstoken…
nari447
  • 834
  • 2
  • 11
  • 25
5
votes
2 answers

Infinite re-direct loop after AAD Authentication when redirect is specified

If I specify a redirect URI in my OpenIdConnectAuthenticationOptions like so app.UseOpenIdConnectAuthentication( new OpenIdConnectAuthenticationOptions { ClientId = clientId, Authority =…
5
votes
1 answer

How do I issue the corresponding Bearer and Cookie identity in ASP.NET with multiple Authorization schemes?

This documentation describes in part how to use more than one authentication scheme: In some scenarios, such as Single Page Applications it is possible to end up with multiple authentication methods. For example, your application may use…
makerofthings7
  • 60,103
  • 53
  • 215
  • 448
5
votes
1 answer

Custom Response for OAuthAuthorizationServer in OWIN

I need to generate custom response for token generation in OAuthAuthorizationServer the default resposne is like this { "access_token": "***access_token***", "token_type": "bearer", "expires_in": 119, ".issued": "Mon, 31 Oct 2016 11:20:50…
Kahbazi
  • 14,331
  • 3
  • 45
  • 76
5
votes
2 answers

Owin get query string parameters

I am trying to get query string parameters from Owin request. Get operation for parameter 'test' remains empty, although this parameter was in query string. How can I read request parameter from OWIN…
FrenkyB
  • 6,625
  • 14
  • 67
  • 114
5
votes
1 answer

Web API app with OWIN 'SystemWeb' on Azure App Service

I am creating app which uses Identity 2.1.0 framework in .NET. I started project in Visual Studio 2015 as Empty Web App (template). Now, I use Microsoft.AspNet.WebApi.Owin, and also Microsoft.Owin.Host.SystemWeb NuGet packages in my project. I…
azec-pdx
  • 4,790
  • 6
  • 56
  • 87
5
votes
1 answer

How is an ASP.NET MVC application heavily dependent on System.Web assembly?

I've read so many articles about OWIN and Katana, and one of the benefits of using OWIN in ASP.NET application is that when building ASP.NET application, i'm inherently bound to IIS due to the heavy dependency on System.Web assembly. In other words,…
5
votes
1 answer

Multiple Web Applications within Self Hosted Owin/Katana Application

I'm working on an application that uses Katana to expose self-hosted WebAPI services. I'd like to manage content similarly to the way IIS allows multiple applications under a single web site. For example, I may have three folders containing web api…
Glen Hughes
  • 4,712
  • 2
  • 20
  • 25