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

Identity Server 3 Facebook Login Get Email

Identity server is implemented and working well. Google login is working and is returning several claims including email. Facebook login is working, and my app is live and requests email permissions when a new user logs in. The problem is that I…
7
votes
1 answer

Why do I get SecurityTokenSignatureKeyNotFoundException?

When I try to pass this JWT (issued by Azure Mobile Services) as a HTTP header/Authorization/Bearer token: Header: { "alg": "HS256", "typ": "JWT", "kid": "0" } Claims: { "ver": 2, "aud": "Facebook", "iss":…
Magnus Johansson
  • 28,010
  • 19
  • 106
  • 164
7
votes
2 answers

What is the process that makes IIS start responding to requests through the Owin pipeline?

If you create an empty ASP.NET Web Application project in Visual Studio 2013 open the package manager console and install-package Microsoft.Owin.Host.SystemWeb Add a Startup class with a Configuration(IAppBuilder app) method, for example: public…
Rui
  • 4,847
  • 3
  • 29
  • 35
7
votes
1 answer

Redirect to ReturnUrl after successful cookie authentication in Owin, Katana & Nancy

I am using Owin, Katana and Nancy to host a simple site with an authentication required section. Note I am also using nuget package - Nancy.MSOwinSecurity app.UseCookieAuthentication(new CookieAuthenticationOptions { AuthenticationType =…
Ned Ryerson
  • 379
  • 2
  • 10
7
votes
1 answer

Single Page Application Project Templates for.NET 4.5 and Angular

Has there ever been a more confusing/difficult time to be a web developer using the Microsoft stack? That's not really my question... I know that the answer is a categorical no. :) The single page app template that comes with VS 2013 is…
Ronnie Overby
  • 45,287
  • 73
  • 267
  • 346
7
votes
0 answers

Difference between OWIN/Katana and Mono

I bumped into OWIN and Katana and I am now trying to understand what this is really about. From what I understand is that it simply tries to separate the web application from the web host. So it basically says that when you build an ASP.NET MVC web…
w00
  • 26,172
  • 30
  • 101
  • 147
7
votes
1 answer

What kind of exceptions will be caught by Microsoft.Owin.Diagnostics.ErrorPageExtensions.UserErrorPage

I got the demo code from http://blogs.msdn.com/b/webdev/archive/2013/11/22/debugging-owin-app-or-framework.aspx , and it shows a sexy error page. app.UseErrorPage(new ErrorPageOptions() { //Shows the OWIN environment dictionary…
Jun Guo
  • 484
  • 1
  • 3
  • 14
7
votes
1 answer

Client Certificate Mapping Authentication in self-hosted Owin endpoint

Is it possible (and if so, how?) to configure a self hosted owin endpoint to use client certificate mapping authentication with A/D? IIS has this feature link, but so far I have not found an equivalent for self-hosted endpoints. The way in which I…
FXbeckers
  • 1,071
  • 1
  • 8
  • 10
7
votes
1 answer

Recommended way to implement custom authentication provider for owin authentication

I need to authenticate users via LinkedIn, Vkontakte and other social networks that do not have providers yet. I succeeded creating custom authentication provider in the following way: Get code for Facebook provider in Katana source code. Change…
aleyush
  • 644
  • 1
  • 6
  • 19
6
votes
1 answer

Why doesn't an AsyncLocal flow from OWIN middleware to a WebForms page?

Find the full sample app demonstrating this problem here. I'm trying to use OWIN middleware to populate a static identifier that will be accessible by a WebForms page, but I'm noticing that with certain types this does not behave intuitively -…
Matt
  • 1,674
  • 2
  • 16
  • 34
6
votes
1 answer

Cannot validate token in UseJwtBearerAuthentication. Authorization has been denied

Using a single asp.net(4.6.1) web project, apparently I'm unable to validate the jwt token that was generated on the same server. Startup.cs: var secret = Encoding.UTF8.GetBytes("12341234123412341234"); var jwtFormatter = new…
Alex
  • 11,479
  • 6
  • 28
  • 50
6
votes
2 answers

How do I ask Owin/Katana to write headers to the output stream?

When I write to the response, Katana skips sending out the Elapsed-Time response header. How can I have it set the headers for me before I write to the stream for the first time? Middleware #1 public override async Task Invoke(IOwinContext…
Greg Dietsche
  • 862
  • 8
  • 16
6
votes
1 answer

Why the required Startup class does't need to implement an appropriate interface, like IStartup?

Using katana, why does the Startup class should not implement a respective interface, like for example: interface IStartup { void Configuration(IAppBuilder app); } public class MyStartup : IStartup { public void Configuration(IAppBuilder…
Yair Nevet
  • 12,725
  • 14
  • 66
  • 108
6
votes
0 answers

Logging error in OWIN hosted Web API

Is there an easy way to have a kind of global error trap that logs all unhandled errors in an OWIN hosted Web API ? Kind of like when you declare a global error trap in Global.asax. I must say the documentation of the Microsoft.Owin.Logging…
Patrice Cote
  • 3,572
  • 12
  • 43
  • 72
6
votes
1 answer

How hosting Asp.Net vNext application hosting on Kestrel, helios, WebListener and in separate Console process differs?

Asp.Net vNext being Host agnostic, applications can be hosted on many platforms in compliance with OWIN standards. And as per the discussions i hear from the developers around, typical vNext application can be hosted on Helios, Kestrel, using…
vabz
  • 171
  • 2
  • 10