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
16
votes
2 answers

SecurityTokenSignatureKeyNotFoundException when validating JWT signature

I'm trying to implement the OpenID Connect specification for my organisation. I'm using Microsoft's OWIN implementation of OpenID Connect in a test relying party application to verify my implementation of the protocol. I've exposed the following…
Paul Turner
  • 38,949
  • 15
  • 102
  • 166
16
votes
3 answers

Use OWIN Ws-Federation package to authenticate against ADFS 3.0

I have an MVC intranet site that needs to use AD accounts for authentication. I setup ADFS 3.0 (Win Server 2012 R2) and followed this to setup the ADFS Relying Party Trust. This other post introduces the Ws-Federation OWIN components and I'd like…
oscarmorasu
  • 901
  • 3
  • 11
  • 28
15
votes
1 answer

Practical examples of OWIN middleware usage

I consider my self a rank beginner to OWIN and after reading a lot of documentation I have only gotten more confused with conflicting notions than before I began. I know these are multiple questions, but I feel answering these will clear most…
user20358
  • 14,182
  • 36
  • 114
  • 186
15
votes
2 answers

Owin, pass custom query parameters in Authentication Request

We have our own OpenID Connect Provider. We want to pass custom query parameter in Authentication request using Owin middleware. And we cannot find the way how to implement this using Microsoft.Owin.Security.OpenIdConnect assembly. Even We cannot…
Aliaksei
  • 191
  • 1
  • 5
15
votes
1 answer

Are Microsoft.Owin types like OwinMiddleware and IOwinContext incompatible with other Owin servers?

If I build an OWIN middleware using Microsoft.Owin types like OwinMiddleware and IOwinContext, would my middleware work with non-Microsoft Owin hosts/servers? I'm looking at the middleware classes for Nancy and SignalR and they seem very different…
enamrik
  • 2,292
  • 2
  • 27
  • 42
13
votes
1 answer

Benefits of using OWIN packages in MVC5 application

I am trying to understand OWIN and Katana.. sure, it's cool that the application can be self-hosted or can be hosted on Nancy or on non-IIS. The reason for this question is we want to create a web application using MVC5 (VS 2013), which will be…
Sudhir
  • 149
  • 1
  • 7
13
votes
2 answers

Owin cookie authentication set-cookie not saving in browser

I am building self-hosted web server on this stack: OWIN Nancy Web Api 2 And I am using Microsoft.Owin.Security.Cookies from Katana for forms-like authentication. I got Set-Cookie header in response, but cookie don't being saved and not being…
12
votes
1 answer

How do I get an instance of IAppBuilder elsewhere in my ASP.NET MVC 5.2.3 application?

I need to build an Owin middle-ware object but not from within the Startup class. I need to build it from within anywhere else in my code, so I need a reference to the AppBuilder instance of the application. Is there a way to get that from anywhere…
Water Cooler v2
  • 32,724
  • 54
  • 166
  • 336
12
votes
2 answers

OWIN send static file for multiple routes

I'm making a SPA which sits on top of ASP.Net WebAPI. I'm waiting to use HTML5 history rather than #/ for history routing but that poses a problem for deep linking, I need to make sure / and /foo/bar all return the same HTML file (and my JS will…
Aaron Powell
  • 24,927
  • 18
  • 98
  • 150
12
votes
2 answers

asp.net web api self hosting / owin / katana

There are multiple question I have around self-hosting Self Hosting Nuget There are 2 nuget which provide self hosting : Microsoft.AspNet.WebApi.OwinSelfHost and Microsoft.AspNet.WebApi.SelfHost, so does microsoft have 2 implementation of self…
harishr
  • 17,807
  • 9
  • 78
  • 125
12
votes
1 answer

How are OwinContext.Request.Path and PathBase populated?

I'm writing my own OWIN middleware for OpenID Connect authorization code flow, based on other examples in the Katana Project. As part of this I have to construct a couple of URIs, eg a Redirect URI and a Return URL. Other examples in Katana do this…
Appetere
  • 6,003
  • 7
  • 35
  • 46
12
votes
6 answers

User (IPrincipal) not available on ApiController's constructor using Web Api 2.1 and Owin

I am Using Web Api 2.1 with Asp.Net Identity 2. I am trying to get the authenticated User on my ApiController's constructor (I am using AutoFac to inject my dependencies), but the User shows as not authenticated when the constructor is called. I am…
Mahmoud Ali
  • 1,289
  • 1
  • 16
  • 31
12
votes
2 answers

Why does AuthenticationManager.SignOut() Fail when I Change the Response?

I just started fiddling around with OWIN/Katana and MVC.NET 5.0. The default Visual Studio 2013 ASP.NET Web Application/MVC Template has an AccountController with a LogOut() action: public ActionResult LogOff() { …
Oskar Lindberg
  • 2,255
  • 2
  • 16
  • 36
11
votes
3 answers

How to set expiration date to client cookies?

I configured Identity Server: public void Configuration(IAppBuilder app) { var factory = new IdentityServerServiceFactory().UseInMemoryClients(new Client[] { new Client() { ClientName = "MyClient", …
Artem
  • 1,773
  • 12
  • 30
11
votes
3 answers

Access token revocation implementation in OAuth 2

I've used OWIN OAuth 2 to implement my Authorization Server Provider. Now, I want to implement token revocation (when my client application wants to logout). Can anybody help me and tell how to implement token revocation in OWIN KATANA OAuth 2. Are…
Sargis Koshkaryan
  • 1,012
  • 3
  • 9
  • 19
1 2
3
28 29