Questions tagged [owin]
Open Web Interface for .NET that describes how components in a HTTP pipeline should communicate.
4,585
questions
-1
votes
0
answers
19
views
why does A null pointer exception occur during context creation for OWIN
We do have a current setup where we have a frontend (React, Javascript, Typescript) and a webapi that is written in c# based on .NET 4.7.2 and using hangfire, hosted on an IIS. Everything is working ...
0
votes
0
answers
16
views
Owin.Security.OAuth don't fire ValidateClientRedirectUri
I made a web .net application in C#. I started from the ASP.NET Web application (.NET Framework) template project in Visual Studio.
I added the Owin.Security.OAuth library and I implemented the ...
0
votes
0
answers
14
views
SiteMapNodes not showing after upgrade from Unity to autofac
We had a development house upgrade our site to use Autofac instead of Unity and now our sitemap is empty - we no longer have our menu items nor do we have our breadcrumb trail. From debugging all I ...
0
votes
0
answers
10
views
Why Httpclient not hitting GrantResourceOwnerCredentials method in ApplicationOAuthProvider class?
When i execute the following line in the browser,which method will be called in ApplicationOauthprovider class? for me,it is hitting ValidateClientAuthentication()
in ApplicationOauthprovider class....
0
votes
1
answer
86
views
ASP.NET MVC error 403 forbidden Microsoft-Azure-Application-Gateway/v2
I follow this tutorial from Microsoft to add Microsoft sign in into my project - ASP.NET MVC on .NET 4.7.2.
I managed login into my Microsoft account access the main page. However, when I tried to ...
1
vote
1
answer
34
views
Upgrading Microsoft.Owin.Security broke UseOpenIdConnectAuthentication
I have upgraded my .NET Framework 4.6.1 application by bumping Microsoft.Owin.Security packages from 3.0.1 to 4.2.2. When I did, my authentication no longer works. I'm now hitting the ...
0
votes
0
answers
4
views
WindowsAzureActiveDirectoryBearerAuthenticationOptions | how to pass challenge instead of realm
I am using WindowsAzureActiveDirectoryBearerAuthenticationOptions to set bearer authentication option. This class internally uses OAuthBearerAuthenticationOptions which has the option to set challenge ...
0
votes
0
answers
36
views
Asp.net owin UseCookieAuthentication ExpireTimeSpan
I have a Asp.net mvc project that utilizes cookie authentication with auth 0. I have set the following configuration where ExpireTimeSpan is set to 10s.
app.UseCookieAuthentication(new ...
0
votes
1
answer
21
views
Microsoft Owin | Adding WWW-Authenticate in case of unauthorized
I am working on .net application. I can see that whenever https status code is 401, a www-authenticate header is appended with value Bearer.
I want change it so that it contain the authorization uri ...
0
votes
1
answer
38
views
Sustainsys.Saml2 multitenant implementation with app.Map()
I have multi tenant application where each tenant can use different IdP to authenticate. Below code correctly redirects to IdP but problem is to get back the response to ACS endpoint.
Key is the ...
0
votes
0
answers
19
views
How can I establish what is causing the disposal of the `HttpListenerRequest` inside an `IOwinContext.Request`
I have a C# API using OWIN.
In one of my OwinMiddleware components I read some properties off context.Request after the Controller processes the request, and sometimes this blows up with an "...
0
votes
0
answers
13
views
Microsoft.Owin.Host.SystemWeb results in Could not load file or assembly 'System.Runtime'
After I add Microsoft.Owin.Host.SystemWeb in my project v4.6.2 it results in Could not load file or assembly System.Runtime
I tried installing System.Runtime, but it gave
Could not load file or ...
0
votes
0
answers
44
views
ASP.NET - Need to redirect on startup.sc where SSOis offline
I have a asp.net c# website. In the past my user login by my database (Username password), now I use SSO for user login and if SSO server is unreachable, users unable to enter website and is not good.
...
0
votes
1
answer
19
views
Identity server 3 Windows authentication not working with current user
In my mvc app integrated with identity server 3 with windows login. When i use that login with windows option its asking credentials popup (I attached screen shot.)
when i close the browser and reopen ...
0
votes
0
answers
26
views
Spatial randomnes of observations (point pattern)
I want to assess if the observations in my data are spatially randomly distributed over the sampling area (Sweden). I wanted to reproduce the example given in this answer: Spatial Autocorrelation ...
0
votes
0
answers
30
views
AspNetCore.Owin equivalent to .netFramework Owin's WebApp.Start
Anyone know of the rough equivalent for the following .netFramework Owin code? It is currently being used to host a web interface on a WPF desktop application.
_server = WebApp.Start(hostingUrl....
0
votes
0
answers
27
views
mock HttpContext.GetOwinContext()(here HttpContext is property of Controller) in Asp.net MVC without refractoring for unit testing
public ActionResult NewSession()
{
HttpContext.GetOwinContext().Authentication.SignOut(
new AuthenticationProperties(),
OpenIdConnectAuthenticationDefaults....
1
vote
2
answers
65
views
How to configure services in Owin startup class in ASP.NET framework
public void Configuration(IAppBuilder app)
{
// code is executed
}
public void ConfigureServices(IServiceCollection services)
{
// code is not executed
}
0
votes
0
answers
97
views
SSO in .Net core mvc and .Net standard mvc
I have third party SSO to implement in Two of my companies legacy system's.
One is in .Net standard MVC while second is in .Net core MVC. I have successfully implemented the SSO on .Net core app ...
0
votes
1
answer
59
views
How to share owin token from .Net Framework with .Net Core 6
I have a .Net Framework application which is already in production that uses owin oauth to authenticate users, I have built a .Net core 6 application which uses the same database but I want to add ...
0
votes
0
answers
4
views
Unreferenced OWIN DLL seem to be executed at application startup
We are converting a solution to use a new authentication methodology. That methodology includes the OWIN DLLS. I made the changes and pushed them into the Git main branch for testing. This kicked ...
0
votes
0
answers
7
views
.NET Suspend/pause session expiration using OWIN
Microsoft's OWIN implementation in the .NET Framwork provides a way to setup automatic session expiration as follows :
Dim options As New CookieAuthenticationOptions
With options
....
0
votes
1
answer
29
views
How does owin middleware track change in cookie
How does owin middleware track change in cookie? I am using cookie authentication. After cookie is generated and attached to browser if I make any change in cookie by using F12(developer toolbar in ...
0
votes
0
answers
82
views
Adding Microsoft.Owin.Host.SystemWeb leads to Could not load file or assembly 'System.Runtime, Version=4.2.2.0,. The system cannot find the file
I have a Asp.net webforms .net framework 4.5.2 and I use VS Version 16.11.5 and if I try to add Microsoft.Owin.Host.SystemWeb it leads to Could not load file or assembly 'System.Runtime, Version=4.2.2....
0
votes
1
answer
118
views
Single Tenant Application needs to support SSO from a multi-tenant provider dynamically with OpenId Owin
I'm trying to use OpenId to authenticate against a dynamic authority URL. There is an unknown number of different {n-tenant}.identityProvider.com authority URLs. So I need to be able to pass through ...
0
votes
1
answer
38
views
Microsoft DI - Are objects referenced within a factory implementation disposed?
Are objects that are referenced, not created, within a factory implementation disposed by the container? See code below:
services.AddTransient(c => OwinContext.ServiceObject);
Will ServiceObject, ...
0
votes
0
answers
34
views
ASP.NET Web API work cors with identity server 4
I try to connect the ASP.NET Web API (not .NET Core) with identity server.
I use owin as startup but I get a cors error.
Why does cors
app.UseCors(Microsoft.Owin.Cors.CorsOptions.AllowAll);
not work ...
0
votes
0
answers
10
views
In .net IDS Is it possible to return to an external IDS after an authentication failure?
On our system, we have a single instance of identity server, on its own URL, which is used to verify credentials for multiple sites we run. On one of these sites, we've got one user facing the ...
0
votes
0
answers
30
views
Correct OAuth2 Method for First Party SSO
Looking at RFC 6749 - The OAuth 2.0 Authorization Framework, it looks like the recommended method would be Resource Owner Password Credentials Grant for a trusted first party. This requires a password,...
0
votes
0
answers
67
views
Kerberos authentication not working for .NET OWIN API + Angular web
I am having issues troubleshooting Kerberos login issues in intranet network with AD into our web application.
Our application has this architecture, which is not very usual (but there are reasons for ...
0
votes
1
answer
64
views
c# asp.net: Owin's Startup not called when browser is Outlook-Add-In
We have a asp.net application with OWIN implementation to manage OAuth access.
All works fine in an normal browser, the OWIN's Startup method 'Configuration' is called and we can do our stuff.
However,...
0
votes
0
answers
14
views
Is there a way to force a IDX21323 OpenIdConnectProtocolValidationContext.Nonce was null error?
We've got one user complaining of the IDX21323 OpenIdConnectProtocolValidationContext.Nonce was null error on our live site. However, none of the developers inside the organisation have been able to ...
0
votes
1
answer
114
views
Using ASP.NET Core middleware in ASP.NET 4.x app
I have a library project targeting .NET Standard 2.0 with ASP.NET Core middleware. It works fine with apps targeting asp.net core to .NET 6. I like to be able to use the same middleware/library in ...
1
vote
0
answers
123
views
OWIN extension OAuthAuthorizationServerProvider support in .NET Core?
We have migrated from .NET framework to .NET 6, however after conversion the reference libraries like "Microsoft.Owin.Security.OAuth" are not supported so I'm not able to use "...
1
vote
1
answer
335
views
Asp.net 4.8 WebForms authorization using Owin OpenId Connect Authentication (app.UseOpenIdConnectAuthentication)
I am encountering an infinite redirect loop between login.microsoftonline.com and my application. My project is implementing authentication and authorization in an Asp.net 4.8 web forms project. I am ...
0
votes
0
answers
53
views
Integrating OKTA with .Net 4.7.2 MVC OWIN Web Application
I keep getting a runtime exception about not being able to load type System.IdentityModel.Tokens.ISecurityTokenValidator. I have confirmed the System.IdentityModel.Tokens.Jwt dll reference does exist ...
0
votes
0
answers
24
views
Owin authentication remove special caracters
I have owin authentication on application .Net 4.7.2
Once form is submitted, in network is see special caracters but it's lost once it's entenred in method GrantResourceOwnerCredentials
Do you have ...
0
votes
1
answer
41
views
Can't move from calling TLS authenticated Web API from console application to ASP.NET MVC IIS hosted application
I've followed a tutorial on how to create a TLS secured Web API using OWIN and Katana. Everything works fine when I access the Web API using a console application as the client.
But, what I'd like to ...
0
votes
0
answers
30
views
Session is always NULL in OwinContext
I have a method on controller which is anonymous and doesn't need authentication. so on browser we are calling that method before token call (OWIN token implementation) and set session in this method ...
0
votes
0
answers
90
views
Trying the sample code in my app: connect works but after the success and token access redirects to login?
I'm trying to implement the sample client server in my current MVC apps to use openiddict.
I have a client App, that I configured to the best of my knowledge the same way as the MvcClient app in the ...
1
vote
0
answers
57
views
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.
...
1
vote
1
answer
68
views
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 ...
1
vote
1
answer
86
views
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 ...
1
vote
0
answers
36
views
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 ...
0
votes
0
answers
27
views
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 &...
0
votes
2
answers
101
views
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 ...
0
votes
0
answers
48
views
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 ...
0
votes
0
answers
35
views
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 ...
0
votes
1
answer
53
views
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 ...
0
votes
0
answers
57
views
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 ...