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
3
votes
0 answers

Migrating a site with Forms Authentication to use OWIN Cookie Authentication Middleware

How easy or difficult it is to migrate an existing site which uses FormsAuthentication to use the new OWIN Cookie Authentication Middleware? Has anyone tried this? Any advice for or against such endeavor? I could not find much information on how to…
BuddhiP
  • 6,231
  • 5
  • 36
  • 56
3
votes
2 answers

Registering OWIN IAuthenticationManager using Castle Windsor

Since IAuthenticationManager implementation can be retrieved from OWIN context, but Castle Windsor's component registration must be done before resolving components, how can I register IAuthenticationManager as component to get injected…
Matías Fidemraizer
  • 63,804
  • 18
  • 124
  • 206
3
votes
1 answer

Set challenge in Owin middleware

Owin middleware implementations lookup their own authentication type before adding a challenge, so only the appropriate middleware responds. Multiple challenges can be used at the same time. protected override Task ApplyResponseChallengeAsync() { …
Benjamin E.
  • 5,042
  • 5
  • 38
  • 65
3
votes
0 answers

How to use Google Cross-Client Identity on Android to authenticate Web API 2 under same project?

I have been researching Authentication & Authorization using ASP.NET Web API 2 for about 2-3 weeks & after lot of researching & reading I am able to agree upon the basic architecture for my project. My project currently consists: ASP.NET Web API 2…
Kunal B.
  • 543
  • 6
  • 22
3
votes
0 answers

VS Browser-Link & Self-Hosted Web Application

Is it possible to use VS Browser-Link together with a self-hosted web application? I know that the Browser-Link uses SignalR. How can I add the Browser-Link feature to my web server? Web app framework: Katana Self-Hosted Any hints or ideas?
cproduct
  • 41
  • 3
3
votes
1 answer

Katana+OWIN Context Get HTTP Referrer?

IOwinContext does not appear to have the HTTP Referrer in it, and I need to grab it. What is the right way to get that particular variable? IOwinContext has several Typed PEMs but I don't see referer in particular. The system I am working is…
Snowy
  • 5,942
  • 19
  • 65
  • 119
3
votes
1 answer

OWIN Startup: Entry point was not found

The following EntryPointNotFoundException is being thrown in my OWIN Startup configuration upon executing UseWebApi(): An exception of type 'System.EntryPointNotFoundException' occurred in System.Web.Http.Owin.dll but was not handled in user…
Dave New
  • 38,496
  • 59
  • 215
  • 394
3
votes
2 answers

ASP.Net web form "not" web API with Owin or self hosting?

I have an ASP.Net webform application , deployed on IIS , now I want to make it self hosted application , I found that Owin can do it , but I am unable to find a way to do it with ASP.Net webform , I have found code with Owin and webapi .I did not…
3
votes
1 answer

Configure Application Permissions in Azure AD

Background I have a Web API registered in Azure AD and secured using WindowsAzureActiveDirectoryBearerAuthentication (OAuth2 bearer token). This is a B2B-type scenario where there are no interactive users - the applications calling the API are…
BenV
  • 12,052
  • 13
  • 64
  • 92
3
votes
2 answers

How can I define the clientID (or other data) in a bearer / access token using OWIN

I am trying to figure out how I could put the clientID (or any additional data I might need) inside a bearer/access token. I am using OWIN OAuth to create the tokens. I can add claims to the identity ticket that will then be ecnrypted/serialized…
bugnuker
  • 3,918
  • 7
  • 24
  • 31
3
votes
1 answer

Registering OAuth authorization service middleware

How can i register the OAuthAuthorizationServerMiddleware and OAuthBearerAuthenticationMiddleware in ASP.NET 5? I tried the following: app.UseMiddleware(typeof(OAuthAuthorizationServerMiddleware),…
Raju Kumar
  • 1,255
  • 3
  • 21
  • 39
3
votes
0 answers

Retrieving JWT from Google+ will not validate

I'm currently struggling with the a JWT I'm receiving from google+ log in service. I'm trying to make several authentication services compatible with my solution, but the JWT I'm getting from google doesn't seem to work the same way as the one I…
Coss
  • 453
  • 1
  • 4
  • 12
3
votes
0 answers

OWIN Katana object lifespan and scope confusion with AspNet.Identity

I'm fairly new to OWIN and I've implemented a solution that uses AspNet.Identity. In Startup Configuration there are several coded lines similar to the following... app.CreatePerOwinContext(ApplicationDbContext.Create); …
Hoots
  • 1,876
  • 14
  • 23
3
votes
0 answers

OWIN - Use Cookie Authentication and Federated Authentication to secure the same website

I have a website where users are either external users who need to provide username/password or internal users in our network (AD). I tried mixing and matching OWIN Cookie Authentication (NuGet Microsoft.Owin.Security.Cookies) and OWIN Federated…
oscarmorasu
  • 901
  • 3
  • 11
  • 28
3
votes
1 answer

Multiple cookies issue in OWIN security AuthenticationHandler

I am using Facebook Owin Authentication and more or less follow Microsoft sample. I am more or less following the First time user logs in, everything is ok. But if they sign out and try again, it seems like the previous .AspNet.Correlation.Facebook…