OWIN Middleware in the IIS integrated pipeline
Questions tagged [owin-middleware]
266 questions
1
vote
0 answers
Identity Server 4 with ASP.NET WebApi v1
I've successfully integrated Identity Server 4 into asp.net MVC 4 project using OWIN/Katana middleware. But what about WebAPI v1?
I've seen a statement in the web saying that "Web API v1 is not compatible with OWIN".
Is it true? If so what is the…

mk_yo
- 752
- 1
- 12
- 39
1
vote
1 answer
How to use ActionFilter on Prometheus mapPath in standard .Net Web API?
I want to filter the range of client IPs who can route to Prometheus metrics.
So in startup I have
public void Configuration(IAppBuilder app)
{
ConfigureAuth(app);
app.UsePrometheusServer(q =>
{
…

Sarah Allen
- 61
- 8
1
vote
1 answer
The Specifications of SAML2 AssertionConsumerService endpoint are not valid
I got the below error while I was trying to authenticate through IBM Security Access Manager (using Sustainsys.Saml2.Owin)
Here is the Link of error code
I tested the code on another IDP https://stubidp.sustainsys.com/ and it's working.
Maybe the…

Nabawoka
- 113
- 1
- 12
1
vote
1 answer
ASP.Net External Cookie with Sliding Expiration appearing as a Session cookie
I am trying to configure a sliding expiration cookie in Asp.Net. I am expecting the cookie to appear in the Google Chrome developer tools cookie manager with an expiration date 5 minutes after authentication, but it shows as "Session" and never…

dckuehn
- 2,427
- 3
- 27
- 37
1
vote
0 answers
Request headers added in OWIN not present when using IIS with URL Rewrite module
Context: Custom API Gateway implemented in ASP.NET and OWIN, hosted in IIS. Reverse-proxy functionality is implemented by using the IIS URL Rewrite rules. OWIN Middleware is used to check and/or manipulate requests (e.g. authorization) and responses…

valorl
- 1,499
- 2
- 14
- 30
1
vote
1 answer
Owin context.Response.Body always empty
have followed through some samples and creating a new buffer MemoryStream to replace the Response.Body before calling next().
Below is my middleware :
public class TrackingMiddleware
{
private readonly AppFunc next;
public…

Wilson Lim
- 21
- 4
1
vote
0 answers
Changing OWIN AuthenticationMiddleware options during runtime
In my app an external component registers an AuthenticationMiddleware middleware during app startup, specifically an OpenIdConnectAuthenticationMiddleware instance. I'd like to change this instance's configuration with the public Options…

Piedone
- 2,693
- 2
- 24
- 43
1
vote
1 answer
ASP.NET Core Equivalent to OwinContext.Environment?
I am trying to port over some Owin middleware that uses OwinContext.Environment. I know I can support the old Owin stuff using the AspNetCore.Owin nuget package but since owin is now integrated into ASP.NET Core, I'd like to update it all.
I know…

Brandon
- 830
- 1
- 15
- 35
1
vote
1 answer
Sustainsys.Saml2 with IdentityServer3 with Okta as IdP
I'm looking at the Sustainsys.Saml2 samples and I've found that if I point the SampleMvcApplication to use Okta as an IdP that all the relevant claims are created. However if I use Okta as an external IdP for the SampleIdentityServer3 project I only…

Colin
- 331
- 3
- 19
1
vote
1 answer
CORS vs Autofac vs Exception handling middleware in Owin, which one goes first?
I have an owin setup that among many other things, uses CORS and Autofac.
The Autofac documentation says "Register the Autofac middleware FIRST.", many people say app.UseCors should be the very first thing.
I also have an exception handling…

BlackTigerX
- 6,006
- 7
- 38
- 48
1
vote
1 answer
WebForms App gets into infinite loop post successful Azure AD B2C sign-in
I have migrated an existing website to authenticate with Azure AD B2C Sign-in Service. It works perfectly in the local machine (IIS). But when I deployed in one of the Development Server, it gets into infinite loop between the app and B2C post…

Natarajan Sennappan
- 11
- 2
1
vote
0 answers
ASP.net Identity management with Azure, in Web Form
I have a Webform ASP.net (in VB.net) that I want to add identity management too. I have added code that allows for the registration of users. But, I am stuck on how to log a user in. My application uses SSO with Azure Active Directory. What I…

jason
- 3,821
- 10
- 63
- 120
1
vote
1 answer
Globally handle all exceptions in WebAPI 2
I am working in WebApi2. I am going to implement global exception handling. As all we knew, we can use IExceptionHandler and IExceptionLogger for the same. I also implemented the same and working fine.
But i am little bit confused with some more…

Akhil
- 1,918
- 5
- 30
- 74
1
vote
1 answer
Asp.net identity doesn't save data to database after deployment
First of all, I am new to asp.net. I am facing a wired issue with my asp.net Web Api2 project.
My SQL Server is hosted in an Azure VM and I am using Owin middleware for authentication. These are the connection strings I using to connect to my…

Obie
- 302
- 3
- 8
1
vote
0 answers
Authentication with DelegatingHandler in aspnet webapi
I have a JwtAuthentication MessageHandler (from DelegatingHandler) implemented on a webapi project. All my allowanonymous webapi are now getting verified for the authentication. Does it mean MessageHandlers will not consider the allowanonymous…

user2603610
- 323
- 1
- 2
- 10