Questions tagged [owin]

Open Web Interface for .NET that describes how components in a HTTP pipeline should communicate.

OWIN defines a standard interface between .NET web servers and web applications, which describes how components in a HTTP pipeline should communicate. The goal of the OWIN interface is to decouple server and application, encourage the development of simple modules for .NET web development, and, by being an open standard, stimulate the open source ecosystem of .NET web development tools.


Useful links


Related tags

4521 questions
376
votes
22 answers

OwinStartup not firing

I had the OwinStartup configuration code working perfectly and then it stopped working. Unfortunately I'm not sure exactly what I did to get it to stop working and am having a really hard time figuring it out. To make sure I have the basics…
Jeff Treuting
  • 13,352
  • 8
  • 33
  • 46
341
votes
4 answers

How to explain Katana and OWIN in simple words and uses?

I have read many articles about the OWIN and Katana projects, but I could not get the whole picture of it. For a normal web developer who uses ASP.NET: What exactly is OWIN and what problems does it solve (in simple words). What is its relation to…
ebram khalil
  • 8,071
  • 7
  • 39
  • 55
271
votes
5 answers

When should I use OWIN Katana?

I am new to OWIN and Katana. I really don't get why I should use OWIN, while I can use IIS. To simplify, my question is: What do I lose if I skip learning OWIN and use IIS for my websites? I googled but there is not a simple explanation. There is…
Seyed Morteza Mousavi
  • 6,257
  • 8
  • 38
  • 63
233
votes
19 answers

OWIN Startup Class Missing

I'm getting this error as my project is not able to find the reference for OWIN startup class. I've even installed all the OWIN reference packages through Nuget still getting the same issue. I'm using Visual Studio 2012 and MVC4. The following…
Krunal Patil
  • 3,658
  • 5
  • 20
  • 28
205
votes
3 answers

Do I need a Global.asax.cs file at all if I'm using an OWIN Startup.cs class and move all configuration there?

Let's say for example in a brand new ASP.NET MVC 5 application made from the MVC with Individual Accounts template, if I delete the Global.asax.cs class and move it's configuration code to Startup.cs Configuration() method as follow, what are the…
user681768
185
votes
15 answers

Unauthorised webapi call returning login page rather than 401

How do I configure my mvc/webapi project so that a webapi method called from a razor view doesn't return the loginpage when its unauthorised? Its a MVC5 application which also has WebApi controllers for calls via javascript. The two methods…
Tim
  • 7,111
  • 12
  • 57
  • 98
179
votes
3 answers

Adding ASP.NET MVC5 Identity Authentication to an existing project

I have seen lots of similar pages on the web, but most of them use a new project instead of an existing one, or don't have the necessary features. So, I have an existing MVC 5 project and want to integrate ASP.NET MVC5 Identity with log in, email…
Jack
  • 1
  • 15
  • 75
  • 149
157
votes
9 answers

ASP.NET_SessionId + OWIN Cookies do not send to browser

I have a strange problem with using Owin cookie authentication. When I start my IIS server authentication works perfectly fine on IE/Firefox and Chrome. I started doing some testing with Authentication and logging in on different platforms and I…
Piotr Stulinski
  • 8,375
  • 8
  • 28
  • 45
103
votes
13 answers

Can't find Request.GetOwinContext

I have been searching for an hour trying to figure out why this isn't working. I have a ASP.Net MVC 5 application with a WebAPI. I am trying to get Request.GetOwinContext().Authentication, however I can't seem to find how to include GetOwinContext.…
Scottie
  • 10,410
  • 17
  • 62
  • 103
91
votes
18 answers

No assembly found containing an OwinStartupAttribute Error

This error The following errors occurred while attempting to load the app. - No assembly found containing an OwinStartupAttribute. - The given type or method 'false' was not found. Try specifying the Assembly. To disable OWIN startup discovery, add…
NVA
  • 1,482
  • 3
  • 15
  • 23
81
votes
4 answers

OWIN Security - How to Implement OAuth2 Refresh Tokens

I am using the Web Api 2 template that comes with Visual Studio 2013 has some OWIN middleware to do User Authentication and the likes of. In the OAuthAuthorizationServerOptions I noticed that the OAuth2 Server is setup to hand out tokens that expire…
SimonGates
  • 5,623
  • 3
  • 35
  • 50
79
votes
7 answers

Error renaming ASP.NET MVC project

I have copied a previous project and renamed it. Once I had successfully renamed all the name spaces and it build correctly. I got the following error when I ran the application: The following errors occurred while attempting to load the app. - The…
Zapnologica
  • 20,003
  • 39
  • 136
  • 229
76
votes
8 answers

Getting "error": "unsupported_grant_type" when trying to get a JWT by calling an OWIN OAuth secured Web Api via Postman

I have followed this article to implement an OAuth Authorization server. However when I use post man to get a token, I get an error in the response: "error": "unsupported_grant_type" I read somewhere that the data in Postman needs to be posted…
user20358
  • 12,976
  • 29
  • 106
  • 174
75
votes
1 answer

Registering Web API 2 external logins from multiple API clients with OWIN Identity

I would like the following architecture (I've made up the product name for this example): Web API 2 application running on one server http://api.prettypictures.com MVC 5 client app running on another server http://www.webpics.com I would like…
joshcomley
  • 26,135
  • 21
  • 102
  • 140
72
votes
4 answers

OWIN HttpListener not located

When I try to start : WebApp.Start(new StartOptions { Port = 9956, ServerFactory = "Microsoft.Owin.Host.HttpListener" }); I get the following exception. What could be the root cause? System.MissingMemberException was caught …
GilliVilla
  • 4,596
  • 10
  • 50
  • 85
1
2 3
99 100