Questions tagged [owin]

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

Filter by
Sorted by
Tagged with
1vote
0answers
24views

Possible problems with Owin SignalR hosted in IIS 10 Express or IIS 10?

this is my first questions on SO. Normaly I just wander the internet reading stuff until I can make up a solution. So up until now we use HTTP Request and Response Model to communicate with Clients. ...
user avatar
  • 11
0votes
0answers
33views

"The provided anti-forgery token was meant for a different claims-based user than the current user" error for a new user after logged off user

We are experiencing a random issue where a user will log off our application and when a new user logs on they get the anti-forgery error "The provided anti-forgery token was meant for a different ...
user avatar
  • 53
1vote
1answer
21views

Migration of .NET v4.6.2 to .NET CORE 3.1 - OWIN Authentication

My apologies for the non-descriptive short description above. Context: We have a range of projects developed using .NET v4.6.2. They use OWIN to authenticate the user. We use Ping SSO. Owin makes sure ...
user avatar
0votes
1answer
31views

Azure authentication .net MVC timeout settings

having searched for the answer to this I cant find any way of extending the timeout for a logged in user. legacy .net framework project 4.7, ASP.NET mvc with Microsoft.OWIN packages. The login process ...
user avatar
1vote
0answers
12views

How do I set language once the client application signed in with identity server

I have a setup where a client application signs in using OWIN middleware / oauth with a central identity server. The return request from the identity server also includes a language claim for the ...
user avatar
  • 11
0votes
0answers
12views

OWIN 2FA Sign In Succeeded by User not Authenticated

I'm trying to implement a custom Two Factor Sign in for a private website. (Previously was set for specific IPs, but client wants to view whenever and whatever device). So, I've created a custom SMS &...
user avatar
0votes
2answers
23views

How do I use the Azure AD Authorization Code Flow?

I am building an ASP.NET (v4.8) Web application that will be hosted as an Azure App Service, but for now we are on localhost. I am configured for Azure AD successfully and I am receiving an ...
user avatar
  • 9,780
0votes
0answers
14views

How do I access the username in an Auth0 user profile from Asp.Net MVC using OWIN

I am just learning Auth0 and I am using the sample Asp.Net MVC app from here. I note that the ClaimsIdentity can access certain user information such as profile and email by defining access to scopes ...
user avatar
  • 81
0votes
0answers
26views

OAuth token expiring earlier than expected

I'm using an MVC 5 (.Net Framework) project where I recently added an API Controller for my Mobile App to function. Everything works fine except that I have a problem with OAuth using OWIN. The token ...
user avatar
0votes
1answer
36views

Minimum Requirements To Use MSAL For Azure B2C

I am tasked with implementing Azure B2C into an existing ASP.Net Web Forms application as a second form of signing in. It currently uses forms authentication authenticating with username/password ...
user avatar
  • 141
0votes
0answers
14views

How do I read the bound SSL certificate in my Web Service?

On the client-side, I can read the certificate using code such as: HttpWebRequest request = . . . var cert = request.ServicePoint.Certificate; How do I do this within my service that is bound to the ...
user avatar
  • 1,181
-1votes
0answers
20views

allow anonymous access to a path - asp.net owin authentication scenario

How do I instruct the authentication system (which looks to be some OWIN middleware set-up) in my ASP.NET 4.7 application to allow anonymous access to a path ('/api in my case - I have different auth ...
user avatar
1vote
0answers
24views

User.Identity.IsAuthenticated is false in a non-auth methods after successful login OIDC with Cookie samesite none

I'm using Microsoft.Owin.Security.OpenIdConnect middleware to implement OIDC login. Because I have to allow user login via iFrame in popup, then I create the SamesiteCookieManager to set all cookies ...
user avatar
  • 11
1vote
0answers
13views

Stop OWIN SignalR services on Server

The MSDN tutorial on SignalR shows how to start the SignalR services via OWIN in an ASP.NET application. However I could not find any example that shows how to stop SignalR services on the server when ...
user avatar
0votes
0answers
39views

Claims lost after a period of inactivity

I am integrating the asp.net webforms project with single sign on(SSO) using Openidconnect and Cookie Authentication using Owin libraries. Once authenticated, the cookie should be active for the day ...
user avatar
  • 597
0votes
0answers
42views

Microsoft.Owin.Security.OpenIdConnect AuthenticationTicket is null on AuthorizationCodeReceived

I'm using OpenIdConnectAuthentication with code flow to implement the OpenIdConnect login. But on the AuthorizationCodeReceived, the property notification.AuthenticationTicket is null value. Any ...
user avatar
  • 11
0votes
1answer
43views

Where does middleware save token?

I have a startup middleware written in vb.net. It successfully logs a user in and creates a claim for them. I am able to access the claim from a separate page in the application using the code below. ...
user avatar
  • 25
0votes
0answers
24views

OpenIDConnect, OWIN and Forms Authentication always redirects to sign in page

I have created an OWIN middleware app that is setup to login a user to Azure AD. I have created a test app in IIS with Forms Authentication. When you navigate to the test app it redirects you to the ...
user avatar
  • 25
0votes
0answers
31views

How to use .net Owin with Hangfire Dashboard authentication

I am currently using the below custom class to authorize Hangfire Dashboard access; public class HangfireAuthorizationFilter : IDashboardAuthorizationFilter { public bool Authorize(...
user avatar
  • 9
0votes
0answers
10views

Route Handler info is null on GetRouteData in Owin middleware

I'm trying to get route name BEFORE entering it, within Owin middleware. I made it to pretty much same idea as in this answer, but route.Handler is always null despite I can clearly see it in the ...
user avatar
1vote
0answers
36views

Both OIDC and ADFS in same application (OWIN)

I am working on an ASP.NET MVC 5 website using EPiServer CMS. The requirement is that we have admin (back-end users) log in using ADFS (working) and OIDC for front-end. Both are set to passive mode ...
user avatar
  • 11
1vote
0answers
21views

How to access virtual directories when using OWIN handler for static files?

I have this in my web.config: <handlers> <remove name="StaticFile" /> <add name="Owin" verb="" path="*" type="Microsoft.Owin.Host....
user avatar
  • 2,722
0votes
2answers
69views

Re-authentication using Identity Server 4

We have 2 MVC applications as clients and an Identity Server 4. We have setup cookie middleware and openIdconnect using owin. Client 1 has a cookie lifetime of 40 minutes. Client 2 has a cookie ...
user avatar
0votes
1answer
177views

Adding Bearer Token to ASP.NET Web API that has Basic Authentication Attribute

I have an ASP.Net Web API 2 with BasicAuthenticationAttribute that is working as expected. In my application, there are different controllers and I want to add bearer token-based authentication to one ...
user avatar
0votes
0answers
3views

Any way to hack this OWIN based file request access control logic?

I'm adding the ability for users to upload files, and only they should have access to their files. To accomplish this I'm using OWIN with code like this: readonly string AppPath = System.Web.Hosting....
user avatar
  • 2,722
1vote
1answer
17views

What response should I give, if not Unauthorized?

We are going to let users upload files and we need to be able to protect their files such that only they can access them. In order to do this I am using OWIN app.UseStaticFiles() to handle static file ...
user avatar
  • 2,722
0votes
0answers
70views

Why bootstrapper project is not starting using owin Startup?

I have an ASP.NET MVC project, created in Visual Studio. I am using an onion architecture. I am trying to use owin to start my project. Here is my project structure: I have Camelrace.core Camelrace....
user avatar
0votes
1answer
225views

HttpContext.GetOwinContext().Authentication.GetExternalLoginInfoAsync() always return null after successfully login using OKTA SAML2.0

I'm currently trying to get Okta to work with our ASP.Net MVC 4.7 based application. what i observe okta login get successfully but Unfortunatly After the authentication (saml response accepted) ...
user avatar
0votes
0answers
22views

Asp.net Web API Microsoft Owin Refresh Token Not Working on Server

I have implemented refresh token using this link click here, and it is working fine on local machine but after deploying on Azure app service it is responding randomly, some times responding after 3 ...
user avatar
1vote
0answers
126views

migration .Net Framework 4.8 to .Net Core 6 - Could not load file or assembly 'System.IdentityModel, Version=4.0.0.0

I just migrated My project from the .net framework 4.8 to the .Net core 6 My Projects have a lot of dependencies like Owin, IdentityServer3, and ... Finally, my solution builds successfully now, but ...
user avatar
  • 65
0votes
1answer
32views

Pass token using URL header

I have a code that authenticate using Azure AD I'm using openIdConnect Lib to authenticate with azure AD. The scenario as below: user open the URL of the app. the app redirect user to Azure AD to ...
user avatar
  • 29
0votes
1answer
40views

Can I change Identity Providers with OWIN and OpenID at run time?

I am using OWIN middleware to configure OpenID Authentication. This configuration is called at StartUp.cs points to a B2C IDP. public void ConfigureAuth(IAppBuilder app) { // Required for Azure ...
user avatar
0votes
0answers
21views

.net MVC 5 AuthenticationManager.GetExternalLoginInfoAsync() returns null on desktop Chrome only

I've come across a puzzling case when using OWIN external login for Google in an .net MVC 5 app. In the following method in the MVC Account controller: public async Task<ActionResult> ...
user avatar
  • 1
1vote
0answers
85views

MSAL for C# with different directory/user guid

Currently I'm implementing Microsoft Authentication Library(MSAL) on my C# .NET framework webapp (single tenant) and when I acquire the token using the code from Owin I'm getting the wrong GUID for ...
user avatar
0votes
0answers
44views

Locally cloud service returns with 302 for everything

I'm debugging the local cloud service but every request to it returns with 302 I put breakpoints in onStart() and onRun() and it does hit them, but it doesn't hit reach the Configuration method in my ...
user avatar
  • 2,118
0votes
0answers
29views

Open ID Connect OWIN .NET framwork application login issue

I observed some strange behaviour and not sure this is because there are some configuration needs to be done in owin middleware parameter section in the Startup.Auth.cs file. Please find below for ...
user avatar
1vote
0answers
46views

Forcing Visual Studio IIS Express To Prompt User For User Certificate

I'm currently using Visual Studio Professional 2019, and have the following use case. I'm trying to do user authentication with X509. I'm prompting for the cert and looking for it via IOwinRequest....
user avatar
  • 3,027
0votes
1answer
25views

How to customize Microsoft.Owin.Security.OAuth to use a certificate but not have IIS Validate it

Hopefully I'm asking the question properly. I have the following use case. I have an application I want to run on https, and have the user pass an x509. However, I want to forward that ...
user avatar
  • 3,027
0votes
0answers
12views

Log in works after second attempt on owin

I update windows server 16 from 2.2.1 to 2.8.0. After update log in start work strange: on first attempt it create ASP.NET_SessionId and redirect back to log in page; on second it generate .AspNet....
user avatar
1vote
0answers
24views

Login asp.net identity with OWIN middleware token endpoint without password?

I have asp.net web API application with asp.net identity with Owin Middleware token endpoint. Is it possible to login without password in this approach?
user avatar
0votes
0answers
14views

Baselib for dynamically host REST-Apis

I want to write a base-library which provides an easy way to host a REST-Api. The idea is, that every other dll can use this library and easily host a REST-Api. For example I have two services (...
user avatar
  • 8,609
2votes
2answers
72views

Could not load file or assembly 'Microsoft.Owin, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35

Upon running in local my website has the below error. I have checked the DLLs, its the latest 4.2.0. LOG: DisplayName = Microsoft.Owin, Version=2.1.0.0, Culture=neutral, PublicKeyToken=...
user avatar
  • 21
0votes
1answer
59views

Deploy .Net 4.7 application to Service fabric as guest executable

In one of my project I am currently working on I have one API on .Net framework 4.7.x , I have to deploy this api to Service fabric as guest executable. But, in order to have .exe I might need to host ...
user avatar
0votes
0answers
32views

Activating CookieAuthenticationProvider.validateInterval cause "UserId not found" exception in aspnectidentity

I'm using startup aspnetboilerplate template Angularjs+MVC5 version 5.13 with following code in Startup app.UseAbp(); app.UseOAuthBearerAuthentication(AccountController.OAuthBearerOptions); ...
user avatar
  • 164
0votes
0answers
27views

Android device to connect to Local Server by hostname Not working, but IP works

Can Android device connect to Local Server(PC on same local network) with Hostname. I can make connection if I use IP of the server PC,but when I try to use Hostname of server PC, it does not work on ...
user avatar
0votes
0answers
7views

Owin UseWsFederationAuthentication with PingIdentity

My application supports WS-FED e.g. with Azure AD or Okta but I would like to know if other IdP PingIdentity supports the same flow or need to implement support for protocol. As per my research ...
user avatar
  • 1,423
0votes
0answers
20views

2 Different OpenIdConnectAuthentications

Is it Possible to have First Authentication Login to the website and have the second Authentication to save the token to a database to be used else where even while logged in via the first ...
user avatar
  • 11
0votes
1answer
43views

Owin Start Url at end of existing domain

Im trying to start my Owin Self hosted in the end of my current domain. For Example I have a MVC Site , hosted on IIS that runs in www.abc.com address and now im trying to Load Self Hosted OWIN server ...
user avatar
  • 1,618
0votes
1answer
240views

Dynamically chose authentication scheme in ASP.net Core Wep Api

I am porting a self-hosted web API built using OWIN and the .NET Framework to a ASP.NET Core Web API (using .NET 6.0) In the original API, I have a custom authentication mechanism that selects the ...
user avatar
  • 5,985
1vote
1answer
38views

OWIN package after upgrade gives an internal error(500)

I upgraded OWIN libraries from version 3.0.1 to 4.2.0, but after upgrading when I hit from postman api\token endpoint it gives me 500 internal error, there are no error reasons seen anywhere, I ...
user avatar

15 30 50 per page
1
2 3 4 5
92