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

OAuth and external auth providers

I am building WebAPI on OWIN that needs authorization. I implemented OAuth 2.0 and I am really happy with it. For now, there is a grant_type "password" authentication implemented and now I need a way to use external authentication systems, i.e.…
Dovydas Navickas
  • 3,533
  • 1
  • 32
  • 48
0
votes
1 answer

Using project katana what is the correct way to specify the startup class in web.config?

One of the ways of specifying the Startup class in Katana is through the owin:AppStartup key in appSettings in web.config If the web.config file contains an appSetting with key=“owin:AppStartup”, the loader uses the setting value. The value …
Rui
  • 4,847
  • 3
  • 29
  • 35
0
votes
3 answers

WebApi 2.1 in IIS Hosting - OWIN

I started by creating a console app and running as a self host OWIN app. Installed Web API and all works fine. Now I installed the SystemWeb nuget package, change the type of app to "class library", change output folder to "bin\" only. When I run…
Bill
  • 2,026
  • 9
  • 55
  • 99
0
votes
1 answer

Thinktecture IdSrv - set the used identity provider name as a claim

I am using the awesome ThinkTecture Identity (IdSrv) and Authorization (AS) servers. I have IdSrv setup with multiple Identity Providers (Facebook, ADFS, Google etc). I have the flows demo running and everything works perfectly, I am currently…
morleyc
  • 2,169
  • 10
  • 48
  • 108
0
votes
1 answer

SPA external providers authentication

I'm trying to add external login providers to an SPA application, but I receive this strange message all the time: error: invalid_request The request that I make: using (Html.BeginForm("ExternalLogin", "api/Account", new { ReturnUrl = "/"…
brainfood
  • 219
  • 1
  • 9
0
votes
1 answer

Signing out External Cookies before Signing in ApplicationCookie - OWIN

I am currently studying the new ASPNET Identity and Owin Authentication so that I can customize it for my own use. I just created a default MVC 5 Application and came across this piece of code private async Task SignInAsync(ApplicationUser user,…
Ody
  • 2,012
  • 4
  • 25
  • 35
0
votes
1 answer

Running signalR in OwinHost

I created a new Empty Project in VS 2013, configured it to run using OwinHost and installed the following packages in order: PM> Install-Package Owinhost PM> Install-Package Microsoft.Owin PM> Install-Package Microsoft.Owin.StaticFiles PM>…
Bill
  • 2,026
  • 9
  • 55
  • 99
0
votes
0 answers

What is Open Web Interface for .Net?

I searched the web more trying to know what is OWIN (Open Web Interface for .Net). I got more information that it decouples server and application, but I am still confused and I can't understand it well.
Abraham Josef
  • 653
  • 1
  • 8
  • 30
0
votes
1 answer

OWIN change "Date" header value

Is there any way to change value of Date header, returned in response? I tried to set header on HttpResponse message in WebAPI action. When I do this in OWIN configuration app.Use((c, a) => { …
Oleh Nechytailo
  • 2,155
  • 17
  • 26
0
votes
1 answer

How to handle external authentication when OWIN middleware and client are different hosts?

I'm trying to develop WEB API for mobile and regular site with some common functionality, one of which is authentication service. I take server side part of VS2013 SPA template and trying to implement security based on individual accounts. The main…
Danyl
  • 93
  • 7
0
votes
1 answer

OwinHost.exe not working for class library project

I've created a new class library project with the following startup class: public class Startup { public void Configure(IAppBuilder app) { app.Run(ctx => { ctx.Response.StatusCode = 200; …
Ben Foster
  • 34,340
  • 40
  • 176
  • 285
0
votes
2 answers

Web API [Authorize] Attribute Without User Logging In Or Requesting Token With Password?

Correct me if I'm not understanding something. I'm working with a fresh Web API application generated from a VS template. The user does register right on the login page of the Web API app. It appears that a user can register from outside the Web…
Mickael Caruso
  • 8,721
  • 11
  • 40
  • 72
0
votes
1 answer

Web application using OWIN and NancyFX how to make it public

I have created A simple website using OWIN and NancyFX as a learning experience. Now i want to make my website avaliable public or at least on my local network(i want to share my experience with my company team). My question how to configure…
ebram khalil
  • 8,252
  • 7
  • 42
  • 60
0
votes
1 answer

Determining application context from OWIN pipeline?

I have an OWIN pipeline using Nancy: public class Startup { public void Configuration(IAppBuilder app) { app.UseNancy(); } } The UseNancy() is actually a call to my own custom extension method defined in this gist:…
TheFastCat
  • 3,134
  • 4
  • 22
  • 32
0
votes
1 answer

Lifetime of Refresh Tokens with Katana OAuthAuthorizationServer

From the source code sandbox Webserver, refresh tokens was done like this: RefreshTokenProvider = new AuthenticationTokenProvider { OnCreate = CreateRefreshToken, OnReceive = ReceiveRefreshToken, } private void…
Poul K. Sørensen
  • 16,950
  • 21
  • 126
  • 283
1 2 3
28
29