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

Content-Length: 0 with OWIN

What is the correct way to handle Content-Length when writing body content in an Owin middleware? Currently we're using context.Response.Write(data); // data is a string. In most cases it works, but in some (IIS host on Win 2012 R2) the…
Anders Abel
  • 67,989
  • 17
  • 150
  • 217
4
votes
1 answer

How do I get the data about a user gotten from an external login provider into his ClaimsIdentity?

I am getting data about a user from his LinkedIn profile using Katana for OAuth. I would like to get all the data I received from LinkedIn into the user's ClaimsIdentity object so I can send it to the AspNetUserClaims table in the ASP.NET membership…
Water Cooler v2
  • 32,724
  • 54
  • 166
  • 336
4
votes
1 answer

How to enumerate cookies in OWIN ResponseCookieCollection

I need to delete all cookies whose name starts with a certain prefix. But the Microsoft.Owin.ResponseCookieCollection is not enumerable. Do I need to query the underlying OWIN structures? How can I get the keys for all cookies starting with a prefix…
MvdD
  • 22,082
  • 8
  • 65
  • 93
4
votes
1 answer

How can I get WindowsAzureActiveDirectoryBearerAuthenticationOptions to accept an audience with an asterisk

My Azure Active Directory application URI contains an asterisk, something like https://*.mywebapp.com". AAD can successfully acquire a token for the https://test.mywebapp.com resource for this app. On the service side I'm using OWIN and…
4
votes
1 answer

Some Server Variables not accessible from OwinContext

In theory the OwinContext environment should have access to the request/response information as well as server variables, although for some reason from the OwinContext I can't access some of the custom server variables that are available from the…
Pierluc SS
  • 3,138
  • 7
  • 31
  • 44
4
votes
1 answer

Getting FacebookAuthenticationProvider instance in IdentityServer (Owin app)

I'm in the middle of an implementation of Thinktecture IdentityServer and am adding the capacity for mobile apps to provide natively obtained Facebook access tokens to the server, which will respond by locally authenticating the user. IdentityServer…
4
votes
1 answer

Owin WS-Federation setting up token sliding expiration

Can somebody explain how to implement sliding expiration using the new Owin WS-Federation plugin? On the client side, at WS-Fedeartion configuration I see that there are some events like : Notifications = new…
Cristian E.
  • 3,116
  • 7
  • 31
  • 61
4
votes
1 answer

What's the difference between context.Get() and its generic version?

I'm trying to get familiar with OWIN and there are a lot of things that confuse me. For example, in partial startup.cs class I register context callback…
Toddams
  • 1,489
  • 15
  • 23
4
votes
1 answer

WsFederation and local user mixed authentication

I'm trying make my user login with Azure AD credentials (using OWIN WsFederation plugin) or using a local user account with microsoft asp.net identity in a MVC 5.1 Web App. Login with local users work fine, login using a federated account works only…
4
votes
0 answers

How to pass claims within a "Request" object to OpenID Connect Provider using Owin/Katana client?

We have our own OpenID Connect Provider. Also we have our own SDK for Relying Party, which creates requests and then parses result. And now we want to make work our Provider with Owin/Katana clients. According to OpenID Connect Spec we can use a…
Aliaksei
  • 191
  • 1
  • 5
4
votes
1 answer

Modify contents of static files

how can I modify the response before it is sent to the client when I use Microsoft.Owin.StaticFiles? FileServerOptions options = new FileServerOptions(); options.FileSystem = new…
kpko
  • 131
  • 11
4
votes
0 answers

Mixing IntegratedWindowsAuthentication and Anonymous with Katana selfhost

I have a basic web API app that tries to support IntegratedWindowsAuthentication & Anonymous. Sample code is below, using (WebApp.Start("http://localhost:8080/", (app) => { HttpConfiguration config = new HttpConfiguration(); …
RaghuRam Nadiminti
  • 6,718
  • 1
  • 33
  • 30
4
votes
2 answers

How to Implement OWIN and Katana in MVC 5Application

i upgrade my application from mvc4 to mvc5. i am using Entity Framework code first approach in my application. i am confuse about OWIN and Katana. how i implement these concept in my web mvc5 application. please guide me. Thank you
Ammar
  • 686
  • 11
  • 28
4
votes
1 answer
4
votes
1 answer

How to enable OWIN logging on Windows 7

I am trying to implement logging into my OWIN self hosting solution. My MiddleWare class is as follows: public class HostingMiddleware : OwinMiddleware { private readonly ILogger _logger; public HostingMiddleware(OwinMiddleware next,…
LukeHennerley
  • 6,344
  • 1
  • 32
  • 50