3,060 questions
0
votes
1
answer
109
views
Browser keeps showing Windows Authentication popup after obtaining JWT token in ASP.NET app
I have an ASP.NET application (on .NET 4.5.2) where I want to use combined Windows authentication and JWT token auth.
When the app starts, it calls an endpoint like this:
/api/auth/token
This ...
1
vote
0
answers
98
views
Will Microsoft Graph authentication to Windows authentication work?
I currently use Microsoft Graph authentication in my application to get user information from Azure AD (e.g., profile, photo, list of AD users). However, I will soon lose access to Microsoft Graph and ...
1
vote
0
answers
62
views
Why ASP.NET Core Windows authentication is working on parent domain and not working on child domain
I have an ASP.NET Core web application, hosted on IIS server. Everything is working fine on the parent domain - explorer prompts for Windows authentication and sign in is working fine. But in the ...
0
votes
0
answers
32
views
HttpMethod.Post gives an 401 error even though it was supplied with credentials [duplicate]
I am trying to create a post method to create a data that pushes to my DB
this is my service to call my API:
public async Task CreateTest(TestsDto testDto)
{
try
{
var request = new ...
0
votes
0
answers
73
views
Angular App with .NET 9 Backend Using Windows Authentication Triggers login Popupon browser randomly
I'm facing an issue with Windows Authentication in a full-stack app:
Tech Stack:
Frontend: Angular 9.1
Backend: ASP.NET 9 (hosted on IIS)
Authentication: Windows Authentication (WinAuth)
Hosting: ...
1
vote
0
answers
334
views
npm install msnodesqlv8 for Database Windows Authentification - Python Error
I want to use module msnodesqlv8 to do Windows Authentification in my DB.
My code is pretty simple and looks like this:
const sql = require('mssql/msnodesqlv8');
const config = {
server: '...
2
votes
0
answers
76
views
RODBC for MacOS M4 Sequoia with Windows Authentication to MS SQL Server
I recently got a Macbook Pro with M4 processor and Sequoia OS. I have been using Windows machine for a while and now trying to figure out my settings.
In my PC, I was able to use Windows ODBC ...
1
vote
0
answers
51
views
Reauthenticating windows user with Credentials.Ui.CredentialPicker.PickAsync(). What comes next?
I am trying to do something here that I thought would be very simple.
I have an old desktop app. It's concept of authentication is simply that it uses WindowsIdentity.GetCurrent(); This is all fine.
I ...
0
votes
0
answers
68
views
Windows Authentication working only in PowerShell but not as curl
I am running Web App on my IIS server and I have Windows Authnetication enabled.
On client, when I run PowerShell script: Invoke-WebRequest -Uri {url} -UseDefaultCredentials, its working fine. Also in ...
0
votes
2
answers
179
views
ASP.NET Core 6 MVC: UseStatusCodePagesWithReExecute redirects before Windows authentication occurs
I have an ASP.NET Core 6 MVC App with Windows authentication. I use UseStatusCodePagesWithReExecute to handle failure status codes.
When I run the application in Visual studio 2022, it directly goes ...
0
votes
1
answer
179
views
Windows Authentication not working with proxy
I am using Windows Authentication in my ASP.NET Web Api app running on IIS server.
On client I am using UseDefaultCredentials = true with HttpClient and it's working fine.
But when I am using ...
0
votes
1
answer
501
views
How to setup Windows AD authentication in Blazor Server on .NET 9?
I have a Blazor Server (using .NET 9 Blazor web app template with render mode set to server). I want to set Windows AD authentication, but it always outputs a null username on the user page, and no ...
0
votes
0
answers
138
views
Windows authentication in ASP.NET Core 9 with kerberos inside a docker container
I'm trying to get my ASP.NET Core 9 Blazor App to work with Windows authentication running in a docker container.
I wrote this dockerfile:
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS base
# Temporär ...
0
votes
0
answers
67
views
MSAL skips password prompt and shows unwanted "Connected on Windows" accounts
Context:
I'm building a .NET Framework 4.8 application where users must log in with organizational account (Azure AD). The goal is to enforce authentication without showing other Microsoft accounts ...
0
votes
1
answer
349
views
Generate SPNEGO kerberos token for IIS Windows Authnetication
In C# .NET Framework 4.8, I need to generate kerberos token in SPNGEO format so I can send it in Authorization header as Negotiate to my IIS server, where I have Windows Authentication enabled.
I am ...
1
vote
1
answer
209
views
Login loop on ASP.NET application
Since October last year, our site, made in ASP.NET Framework 4.5.2, which is authenticated by Windows, has been having problems when logging in these two browsers and we fear that the error also ...
2
votes
0
answers
194
views
How do I show a Windows login prompt on every visit to a Razor page in an ASP.NET Core application?
I am attempting to have the browser prompt the user for their Windows login credentials on each visit to a page I have setup. The reason for this, is that our customer is wanting the user to have to ...
1
vote
1
answer
59
views
ServiceStack and Windows Auth
I am using the latest version of ServiceStack (as of the time I am writing, version 8.5) and I need to integrate Windows Authentication into my application. I know that ServiceStack doesn't provide a ...
0
votes
1
answer
88
views
IIS AD trust - how IIS validates the user
I have a user logged into domain A and an IIS server in domain B. There is a two-way trust between these domains.
Now, the user from domain A enters the web app hosted on IIS in domain B using windows ...
0
votes
1
answer
73
views
Yubikey and Performing admin task in Active Directory in C#
I have an app I built that helps me with some tasks such as adding users to groups, removing, creating users, deleting users, and unlocking users in Active Directory. Which all require some admin ...
0
votes
0
answers
143
views
How to retrieve windows user while sending angular request to .NET Core 8?
I've been struggling too much on this, I have an Angular application with .NET Core 8 and all I want is to get the Windows user from a client request because I need to log who makes certain action.
I ...
0
votes
0
answers
129
views
How can I retrieve data saved using FileStream on a remote non-domain PC with SQL Server and C#?
I have a table that contains a field enabled for FileStream and it saves the information correctly.
Using the code indicated by the Microsoft guide (text), I can retrieve file information on a local ...
0
votes
1
answer
156
views
Create authentication cookie for another website (via Windows authentication)
I am using ASP.NET Core 8 (will upgrade to 9 when released).
I have 2 websites, the first is accessed internally inside the corporate network, using Windows authentication. The other copy of the same ...
0
votes
1
answer
944
views
Handshake error in ASP.NET Core 6 application using Negotiate authentication
I have an ASP.NET Core 6 application that uses the Negotiate authentication scheme to authenticate using the Windows authentication (NTLM/Kerberos).
I'm configuring the authentication service like ...
0
votes
0
answers
57
views
How to access resources on a different Active Directory forest using Windows API + Token impersonation?
I have 2 Active Directory setups on my lab:
AD1.local
AD2.local
Both forests have trust relationship enabled.
I have a resource "X" on AD1 that is only accessible to the "Marketing&...
0
votes
1
answer
122
views
Issue with Windows Authentication Type on IIS with Multiple Host Bindings
I'm facing an issue with Windows Authentication when deploying my Single Sign-On (SSO) application using Duende SSO on IIS. The application is secured using an SSL certificate with the following ...
3
votes
1
answer
518
views
ASP.NET Core app can't login using negotiate from domain name
I'm having a hard time trying to use negotiate for my app. The thing is that for https://localhost, the Windows authentication works fine, but once I switch to make a request from https://test.com, I ...
0
votes
0
answers
60
views
Windows authentification infinite pop-up for remote users
So I have a dotnet web app deployed with IIS on a Windows server 2019, this web app uses Windows authentication and the problem that I have is that when I try to connect like to the webapp directly ...
2
votes
0
answers
87
views
Windows authentication for SQL server using SQlServerDriver and Springboot JDBCTemplate
we want to connect to SQL server data base using windows authentication. we are able to connect with SQL server authentication, but the password is getting changed very frequently and our application ...
0
votes
1
answer
115
views
Windows authentication in DevTunnels
I have a blazor server application with windows authentication.
Server configuration:
builder.Services.AddAuthentication(HttpSysDefaults.AuthenticationScheme);
builder.WebHost.UseHttpSys(options =>...
1
vote
2
answers
375
views
.NET Core 8 - Flurl not using the current user credentials for the default proxy
I am building a .NET Core 8 app that sends an HTTP request to a REST API using Flurl.
When I manually set the proxy with my credentials, it works fine.
However, when I don't set my credentials, the ...
0
votes
1
answer
28
views
Strange behavior of Blazor Authorization template
I can't get a component to be disabled using policy
Create an empty BlazorServer project with the WindowsAuthenticate authorization template.
Add a default policy that denies everything.
builder....
0
votes
1
answer
248
views
Does integrated Windows authentication in Ansible require a physical connection to MSSQL server? [closed]
Description:
I'm currently setting up an Ansible playbook to connect to an MSSQL database server hosted on Windows using integrated Windows authentication. However, I'm uncertain about the requirement ...
0
votes
1
answer
123
views
Authentication process in web browsers (chomre & edge)
We are running into a weird problem with two users on an internal only app at a client. The application uses windows authentication. It only happens with these two users and have had no other ...
0
votes
0
answers
76
views
Connect to Azure SQL Server using windows credentials [duplicate]
I'm trying to connect to Azure SQL using on-prem AD account, which is synched to Azure AD.
I am able to connect using the SSMS when I run as a different user but programmatically it doesn't work.
It's ...
1
vote
0
answers
107
views
SingalR not working on server IIS. works on local host
I have websockets enabled on my iis server. I am using singal R to update a progress bar during downloading. Works and local host but when published to server I get the following.
blazor.web.js:1 [...
0
votes
0
answers
309
views
Login failed from an untrusted domain using integrated authentication when connecting Excel-Pivot to SQL Server
Situation: I have two SQL Servers with two databases located in the same domain as my client's PC. I'm trying to create two pivot tables using the table relationships in these databases on both ...
0
votes
1
answer
384
views
ASP.NET Core 8 Web API not passing windows user in iis
I have an ASP.NET Core Web API. When I run it in Visual Studio with IIS express, Windows authentication works fine.
However, when I deploy the API to IIS, it fails to use Windows authentication. I ...
0
votes
0
answers
330
views
Windows Authentication using service account in .NET 8 console application and gMSA in Task Scheduler
EDIT: as @Panagiotis Kanavos wrote - this probably a question about the use of group managed service accounts. This is where I will try to find the reason for the error.
--- original entry ---
I'm ...
0
votes
2
answers
606
views
ASP.NET Core Windows authentication - how to fail authentication for users that pass authentication but don't have specific app business roles?
I have an intranet ASP.NET Core web app deployed in IIS that uses Windows authentication. This app has been converted from an ASP.NET MVC 5 & webforms app.
The ASP.NET Core app uses an ...
0
votes
1
answer
74
views
Windows authentication only works for http://localhost:80
I modified this sample app (https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/servers/httpsys/samples/8.x/SampleApp) such that:
line 14 in Program.cs now reads:
(before): ...
1
vote
1
answer
175
views
Safe handle has been closed when accessing name of WindowsIdentity
I am developing an internal webservice using ASP.Net Core 6. The windows identity is provided to the app by IIS when accessing AuthenticationStateProvider.GetAuthenticationStateAsync().User.
Most ...
1
vote
1
answer
64
views
How can I prevent the browser caching credentials of the logged in user, when user enters my Blazor server side web app?
I have a blazor server side app with windows authentication. How can I programmatically prevent the browser, caching the logged in user's credentials?
I need this therefore because I want to force the ...
0
votes
0
answers
84
views
In my Blazor server side app with windows authentication, I want to force that each time my page is opened, the login page appears. Is that possible?
In my Blazor server side app I have set windows configuration. If a user opens my page the first time, the login dialog box appears and the user has to log in. But the next time, I think it is cached ...
0
votes
2
answers
1k
views
Blazor server app with Windows Authentication getting 401 unauthorized
I'm building a Blazor server application for an internal company use and using Windows authentication. The app is supposed to field updates from another app via an exposed controller. I am trying to ...
0
votes
0
answers
95
views
IIS Express: configure domain to be used for Windows authentication
When running an ASP.NET project that uses Windows Authentication in VS using IIS Express on a computer joined to domain C.B.A, the authentication works and local groups of C.B.A that the user is part ...
0
votes
1
answer
2k
views
The system cannot contact a domain controller to service the authentication request. Please try again later
I'm receiving the subject message when I test an TFDConnection to my SQL Server in Delphi.
The server is in a different AD tree. I've set up a Windows credential that seems to work, as I can connect ...
1
vote
0
answers
265
views
Windows authentication in simple web service
I am trying to create a simple web service starting with the Visual Studio "ASP .NET Core Web API project template". The project wizard creates a weatherforecast service that works fine. ...
0
votes
1
answer
626
views
How to get Playwright .NET tests to run in Azure DevOps Server against IIS using Windows Authentication
I'm trying to get our Playwright tests to run in our CI/CD pipeline. I'm finding scant documentation on how to do so with regards to our specific situation. Here are the key components:
Code is .NET ...
0
votes
0
answers
427
views
User Impersonation (Windows Identity) not working in .NET for Windows Authentication
I have an ASP.NET (Blazor Server) app (.NET 8) which calls an API. We are using Windows Authentication on both the website and API. This works in multiple (6) different environments. We have a client ...