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

Using OnValidateIdentity to perform additional validation on cookie data

On Brock Allen's blog, he states that the CookieAuthenticationOptions class has a Provider property ... and it has properties which are delegates you can subscribe to. This allows you to validate the cookie as it comes into the application …
EvilDr
  • 8,943
  • 14
  • 73
  • 133
5
votes
1 answer

Is Microsoft Asp.net Owin Helios project still alive?

One year ago, Microsoft announced the "helios" project (http://blogs.msdn.com/b/webdev/archive/2014/02/18/introducing-asp-net-project-helios.aspx). Since then, there has been no updates on it's nuget package and no related news. Is it safe to start…
cangosta
  • 1,174
  • 2
  • 13
  • 27
5
votes
0 answers

How to step into a OWIN middleware in a package?

I have the following stack in my ASPNET 5 app startup: appBuilder.UseIdentityServerBearerTokenAuthentication(); // That calls app.UseValidationEndpoint(); // That calls app.UseOAuthBearerAuthentication(); // That…
5
votes
2 answers

No conversion available between HelloWorldComponent and System.Func`2[System.Collections.Generic.IDictionary`2 // Parameter name: signature

I am working through Scott Allen's MVC 5 Fundamentals course on Pluralsight I get an error at "using (WebApp.Start(uri)) " in the code below. The error is An unhandled exception of type 'System.ArgumentException' occurred in Microsoft.Owin.dll …
Kirsten
  • 15,730
  • 41
  • 179
  • 318
5
votes
1 answer

GetExternalLoginInfo returns 'null' on Google OWIN provider

I've got a nearly stock ASP.NET MVC template application from Visual Studio 2013. It was created using the following settings: Create > Project > Web > ASP.NET Web Application > OK > MVC, Individual User Accounts > OK I'm attempting to log in…
Jesse Hallam
  • 6,794
  • 8
  • 48
  • 70
5
votes
1 answer

Where is the Microsoft.Owin.Security.Basic NuGet package?

I can't seem to find the NuGet package for the released version of Microsoft.Owin.Security.Basic. I would expect it to be on nuget.org, but it isn't. According to the Katana project site Microsoft.Owin.Security.Basic was released with v2.0.0.0 in…
r2_118
  • 640
  • 1
  • 9
  • 25
5
votes
1 answer

Customising the OWIN/Katana UserManager factory behaviour

There are many samples online using OWIN/Katana to find users in a database based on ausername/password combination and generate a claims principal, such as... var userManager =…
EvilDr
  • 8,943
  • 14
  • 73
  • 133
5
votes
1 answer

MVC5 OWIN ws-federation AuthenticationManager.GetExternalLoginInfoAsync() returns null

I'm trying to setup integrated OWIN WS-Federation (ADFS) authentication in a new MVC 5 project in Visual Studio 2013. WsFederation in Startup.Auth is configured as follows: app.UseWsFederationAuthentication(wtrealm: "MyRealm", …
5
votes
1 answer

Finish current requests when stopping self-hosted owin server

I have OWIN server as part of console app. You can see the main method here: class Program { public static ManualResetEventSlim StopSwitch = new ManualResetEventSlim(); static void Main(string[] args) { Console.CancelKeyPress +=…
Lukas Pirkl
  • 1,417
  • 3
  • 15
  • 31
5
votes
0 answers

OWIN middleware gets called more times than expected, what am I missing?

I am testing OWIN middleware and wrote the following middleware class. But strangely, I see that this middleware is called about four times in total when I request a URL without any path (localhost:). However when I call…
Charles Prakash Dasari
  • 4,964
  • 1
  • 27
  • 46
5
votes
0 answers

MVC 5, OWIN Google and Microsoft refresh_token

I am building a MVC 5 web application that uses cookie authentication as primary authentication method. Our application flow goes like this: First time user signs up with username/password to create an IdentityUser. User signs in with his…
jjarv
  • 71
  • 6
5
votes
0 answers

Using Facebook-SDK with OWIN/Katana

I want to use Facebook-SDK login popup at my SPA WEBAPI application with OWIN. VS 2013 already provides a great template for facebook login but it highly dependent on server side codes which i don't prefer. By using Facebook-SDK, i can login to…
5
votes
1 answer

OwinMiddleware instead of message handlers in webapi

I was working on a webapi project & now we are migrating to owin-katana self hosting. OwinMiddleware behaves in a same way as MessageHandlers. So my question is that, If we are using Owin-katana hosting then do we need to use OwinMiddleware instead…
ggtffg
  • 303
  • 3
  • 20
5
votes
1 answer

Owin/Katana - Integration with ASP.NET Request Lifecycle

Owin/Katana could be hosted either with IIS or self hosting. When hosting over IIS, what happens to the ASP.NET Request Life cycle? Will it still run as before? (BeginRequest, etc ...). What basically happens?
Bill
  • 2,026
  • 9
  • 55
  • 99
5
votes
1 answer

Why does the ASP.NET SPA template instantiate UserManager once for all requests?

I'm using the VS2013 ASP.NET SPA template as a starting point for my web application which uses the new ASP.NET identity framework. This is from the template: public partial class Startup { static Startup() { UserManagerFactory = ()…