FAQ Database Discussion Community


Owin WS-Federation setting up token sliding expiration

owin,katana,ws-federation,sts-securitytokenservice
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 WsFederationAuthenticationNotifications { SecurityTokenReceived = ..., AuthenticationFailed = ..., RedirectToIdentityProvider = ..., MessageReceived = ..., SecurityTokenValidated = .......

OWIN use SignalR and prevent 'HTTP Error 403.14 - Forbidden'

asp.net,.net,owin,katana
I'm hosting SignalR in an OWIN selfhosted app - in Azure, like so: public class Startup { public void Configuration(IAppBuilder app) { app.MapSignalR(); } ... Easy enough, works fine. Exposes /signalr/hubs as expected. What I would like to do is prevent an HTTP 403.14 when someone hits the / url....

“No owin.Environment item was found in the context.” when not in debug mode

c#,asp.net-mvc,owin,katana
I'm having a weird issue regarding Owin and its context. I have a controller action that looks like this [HttpPost] public ActionResult Login(string username, string password) { var ctx = HttpContext.GetOwinContext(); // code omitted return new HttpUnauthorizedResult(); } If I set a breakpoint at var ctx and debug my application...

How does Katana relate to ASP.NET 5 applications on IIS?

asp.net-mvc,asp.net-web-api,owin,katana
I understand what OWIN is, and it is good, and generally that Katana is a Microsoft implementation the standard in terms of the ASP.NET ecosystem. I've also read that Katana has only so far been designed to work with WebApi and SignalR, since these take no dependency System.Web. Cool. However,...

OwinHost.exe vs Custom Host

c#,asp.net,owin,host,katana
Katana has 3 popular Host: ? IIS/ASP.NET Custom Host OwinHost.exe My question is what is the difference between Custom Host and OwinHost.exe?...

OWIN Startup: Entry point was not found

c#,asp.net-web-api,asp.net-web-api2,owin,katana
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 code Additional information: Entry point was not found. Web API configuration: public class WebApiConfig { internal static void Register(HttpConfiguration config) { //...

Katana+OWIN Context Get HTTP Referrer?

owin,katana
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 self-hosted. Thanks....

Microsoft.Owin.Security.ActiveDirectory library purpose

authentication,owin,katana
I am getting myself familiar with all the stuff related to authentication using active directory (both Azure AD and Windows Server AD). Currently I am inspecting MS Katana project which is based on OWIN specification. There are three libraries and one of them is kind of confusing for me: Microsoft.Owin.Security.ActiveDirectory...

How does Katana/IIS handle conflicts. WebApi in WinService and website in IIS - who wins?l

iis,asp.net-web-api,owin,katana,topshelf
I have a IIS configured with a lot of websites. Now I want to install a WebApi hosted with OWIN/Katana in a Windows Service (using topshelf). Could my WebApi be using the same port as IIS? http://myserver/webapp1/ (This goes to IIS) http://myserver/api/method/ (This should go to OWIN inside my windows...

Owin self-host Web API 405 method not allowed on DELETE

web-api,owin,katana,http-status-code-405
I am creating an Owin self-host Web API and getting a 405 method not allowed response when posting a DELETE request the server. POST and GET seem to work with not problems. I can reproduce the error in the ASP.Net Sample application OwinSelfHostSample project at https://aspnet.codeplex.com/SourceControl/latest#Samples/WebApi/OwinSelfhostSample/ReadMe.txt I do not have...

OWIN not firing up if project not set as Startup with IIS Express

visual-studio-2013,owin,iis-express,katana
I have a solution in VS2013 with the following setup: App.Web (Web Project with only static files) App.Web.API (Web API project with OWIN) Both the projects have a default url pointing to their own localhost:portX (I am using IIS Express), so App.Web is listening on localhost:2222 and APP.Web.API is listening...