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

Katana / OWIN Debugging & app.UseErrorPage

I've got some time to do R&D and have been playing around with OWIN as of today. I'd like to have an OWIN WebAPI service running for all data interactions, and a separate Web front end SPA project making use of angular. All code is shamelessly…
Rohan Büchner
  • 5,333
  • 4
  • 62
  • 106
4
votes
1 answer

How do you reject a Katana Bearer token's identity

How can I reject An identity? My class inherits from OAuthBearerAuthenticationProvider and I have an override of ValidateIdentity? I have tried setting context.Rejected(); or context.SetError(); and throwing an exception but my controllers still…
Aaron Fischer
  • 20,853
  • 18
  • 75
  • 116
4
votes
1 answer

How to do long lived tokens with Katana OAuth Bearer Tokens

From the SPA template i managed to get basic OAuth flows working. OAuthOptions = new OAuthAuthorizationServerOptions { AllowInsecureHttp = true, ApplicationCanDisplayErrors = true, TokenEndpointPath = new…
Poul K. Sørensen
  • 16,950
  • 21
  • 126
  • 283
4
votes
1 answer

OWIN Alter UseStatic?

The OWIN AppBuilder "UseStatic" bits deliver files from a local filesystem which is handy for some situations, but I would like to instead have it deliver content from an in-memory IDictionary that I pre-populated at application startup. Can anyone…
Snowy
  • 5,942
  • 19
  • 65
  • 119
4
votes
3 answers

About OWIN pipeline

I have a simple question regarding the OWIN pipeline. I pretty much understand the whole concept of this specification, but there is something that i haven't totally digested. According to several online posts, there is the OWIN pipeline which…
ppoliani
  • 4,792
  • 3
  • 34
  • 62
4
votes
1 answer

Katana Webserver not finding clientSecret

I downloaded the katana project and wanted to try the client/server in the sandbox project. I rand into a problem at for OAuthValidateClientAuthenticationContext : public bool TryGetFormCredentials(out string clientId, out string clientSecret) { …
Poul K. Sørensen
  • 16,950
  • 21
  • 126
  • 283
3
votes
1 answer

Bookmarking login page with nonce

I'm trying to integrate an MVC4 web client with IdentityServer using Microsoft OWIN middleware OIDC authentication v4.0.0. When requesting an ID token from the authorize endpoint, a nonce must be supplied, and the login page served up has the nonce…
3
votes
0 answers

IdentityServer3 - Cookie Path Issue

My question is in regards to an issue with the cookies generated by an IIS hosted, IdentityServer 3 SSO application using OWIN WS-Federation middleware. We were experiencing an intermittent production issue which was preventing logins (and logouts)…
George
  • 31
  • 6
3
votes
0 answers

ASP.NET *PRECOMPILED* but still long startup

We have an app that is being published "precompiled". When we deploy it to the server, it updates momentarily, no interruptions, no pauses. This is really important since the app is used by 1000s of companies Then we added SignalR. Which, in turn,…
Alex from Jitbit
  • 53,710
  • 19
  • 160
  • 149
3
votes
0 answers

Multiple B2C policies for securing different endpoints

In this post there is a discussion of multiple policies in B2C to secure different endpoints, thereby forcing someone to login again for more sensitive resources. This sounds great, and was echoed in this SO post where examples of Facebook or Google…
3
votes
1 answer

Run Owin app in ASP .NET MVC 4

I have an ASP .NET MVC 4 project where I am trying to integrate an Owin app to run only for a specific path, so all requests starting with owin-api/* will be handled by the Owin pipeline Microsoft.Owin.Host.SystemWeb.OwinHttpHandler and the other…
Sow OBM
  • 58
  • 1
  • 6
3
votes
1 answer

OWIN compression middleware for selfhost scenario

We have an OWIN application (built with Nancy and WebAPI). When hosting it in a console application (with Katana selfhost), I don't have any compression enabled on static content. I've tried to look for a working example of OWIN GZip middleware. So…
Aryéh Radlé
  • 1,310
  • 14
  • 31
3
votes
2 answers

register new middleware to OWIN pipeline at runtime without restart application

I have added all available middleware in OWIN Pipeline using Startup class to authenticate user in my project. It is working fine. But how can I add middleware to OWIN Pipeline after Startup at runtime. So that Admin can enter the details of new…
3
votes
1 answer

Self Hosting Web Application versus IIS Hosting?

I am in the process of building a Web based client for a Server application which is running as a Windows Service. The server application currently has a Windows Form based Client Application written in C# and the idea is to obsolete it and provide…
Secure Blob
  • 45
  • 1
  • 5
3
votes
1 answer

Create same access token for multiple devices

I am using the katana owin project in my Web Api 2 project. I want that user will be able to login from different devices, for example: smartphone and tablet. And that the user will get the same token if its not yet passed. In the current situation,…
RisingStar
  • 63
  • 5