© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•15mo ago•
1 reply
reeeeeee

Windows/AD authentication between Angular SPA and .NET API

As mentioned in title, I have .NET API which will be used for my Angular SPA. Some pages needs to be protected, and I would like to use AD / Windows auth for it.

Curently, I managed to find one solution, to set my API for Windows Auth and Check
context.User.Identity
context.User.Identity
. In my angular app, I set
withCredentials: true
withCredentials: true
before sending the request. this technically works. But. Occasionally, that default "windows login" popup appears, is there any way to prevent that and automatically grab the users identity/credentials? Or is this an okay workflow for that?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Identity, .NET Api and Angular client
C#CC# / help
11mo ago
❔ implementing api authentication in asp.net
C#CC# / help
3y ago
Windows Authentication
C#CC# / help
16mo ago
❔ Question about Azure AD B2C and Front-End Authentication via API
C#CC# / help
3y ago