OWIN Middleware in the IIS integrated pipeline
Questions tagged [owin-middleware]
266 questions
2
votes
0 answers
Asp.Net Mvc Identity&Owin true way for Two-Factor authentication
I am new using two-factor authentication and have problems.Error is raising after sms code verify button click.I am registering and then entering the sms code the error is,
The provided anti-forgery token was meant for a different claims-based…

Alican Kablan
- 399
- 8
- 17
2
votes
0 answers
C# Web MVC + API - Owin Authentication, retrieve claims in website?
I have the following architecture:
A website, that needs role control and user authentication.
An API, that handle authentications via OWIN, by getting email/pwd and checking whether the user exists in the DB. If so, it creates a Claims and sends…

Ashallar
- 990
- 8
- 15
2
votes
1 answer
Reading the response body in owin middleware
I'm trying to get a copy of a response after my MVC controller action has executed but from other questions on here I can't get this code working (even though this appeared to be a well answered problem) ...
public class Startup
{
public void…

War
- 8,539
- 4
- 46
- 98
2
votes
0 answers
SSL certification authorization in OWIN Katana
I have a requirement to develop a lightweight Web API, which shall get the request message from client, add it to the queue(MSMQ / DB) and reply with status code and the API should be developed in .net technology.
Number of requests that the API…

Thavudu
- 235
- 3
- 13
2
votes
2 answers
Identity Server 4 issued JWT Validation failure
I have an Identity Server running based on IdentityServer 4 (.Net Core v2) targeting the full .Net framework, and I have an ASP.NET WebAPI built against ASP.Net Web API 2 (i.e. NOT .Net Core) that is using the Identity Server 3 OWIN middleware for…

Mark Bennetts
- 183
- 1
- 10
2
votes
0 answers
Owin Context returns null
This is my DbContext class:
public class ApplicationDbContext : IdentityDbContext
{
public ApplicationDbContext()
: base("name=ApplicationDbContext")
{
}
protected override void…

RottenCheese
- 869
- 2
- 12
- 18
2
votes
1 answer
Getting client certificates in Azure Web App using OWIN
If you are using Azure Web Apps to host your web application (let it be an ASP.NET MVC web app) you do not have the possibility to set up the IIS behind the Azure Web App to accept client certificates through an HTTPS connection. My application has…

Gábor Domonkos
- 1,081
- 1
- 17
- 33
2
votes
0 answers
Owin: understand OwinHttpListener.SetRequestProcessingLimits
var owinHttpListener = (OwinHttpListener)appBuilder.Properties["Microsoft.Owin.Host.HttpListener.OwinHttpListener"];
int maxAccepts, maxRequests;
maxAccepts = Int32.MaxValue; //Default = 5 * ProcCount
maxRequests =…

Mr.Wang from Next Door
- 13,670
- 12
- 64
- 97
2
votes
1 answer
Is it possible to share AAD authentication cookie between two web applications on the same site
Question Is it possible for a back-end-web-app to accept and pick up the user identity from the AAD authentication cookie generated by signing in to a front-end-web-app?
Background I want to achieve an Azure Active Directory single sign on…

MatiasK
- 686
- 1
- 7
- 20
2
votes
0 answers
OWIN Middleware does not respect JSON Serialization Settings
I am changing the serialization setting on a Self Hosted OWIN WebAPI 2 application.
All controllers and filters responses are working 100% but any responses from the middleware is not respecting the serialization settings.
How does one set…

Oliver
- 35,233
- 12
- 66
- 78
2
votes
2 answers
Owin Middleware
I have written a custom owin middleware for two factor authentication, but sometimes it happens HttpContext.Current.Session throws an exception of object reference is not set to an instance of an object, when it checks for new session.
I checked…

Anubhav Agrawal
- 25
- 5
2
votes
1 answer
TokenEndPoint not found while authenticating user from SPA to Web API using OWIN
I am facing difficulty while authenticating users using token mechanism from Angular JS SPA Page to WEB API.
I do not want to use ASP.NET Identity default tables to add or authenticate user. I have my own database and a table called "EmployeeAccess"…

simple user
- 349
- 3
- 22
- 44
2
votes
2 answers
"Message": "Authorization has been denied for this request." OWIN middleware
I added Token based authentication to my OWIN middleware and can generate the token. But while using, the token for an API call with Authorize attribute I always get "Authorization has been denied for this request." It works fine though without…

user3154990
- 555
- 4
- 13
- 27
2
votes
2 answers
OWIN OAuth2 middleware with %23 (# fragment) in redirect uri
I'm using the ASP.NET OWIN/Katana OAuthAuthorizationServer middleware and have run into a snag.
I have some sites trying to get authorization tokens and created an /oauth/authorize endpoint. However, these requests are coming from a SPA (Angular)…

Daniel Lorenz
- 4,178
- 1
- 32
- 39
2
votes
1 answer
Serilog Owin Middleware
I'm trying to add a simple enrichment using LogContext in an Owin pipeline
My Logger configuration
// configure logger
Log.Logger = new LoggerConfiguration()
.Enrich.WithProperty("B", 2)
.ReadFrom.AppSettings()
…

Omri Btian
- 6,499
- 4
- 39
- 65