First of all, I know similar questions have been posted here before but hear me out. After all the posted solutions failed for me I am posting this. So the scenario is as follows: I have SAML integration in my ASP.Net Core 6.0 MVC Web Application. After authentication with the Service Provider, I am calling HttpContext.SignInAsync. I expect the name of the authenticated user (In my case the official email Id) to be returned. But I am getting an empty string. On IIS I have Anonymous and Windows Authentication set to true. When I disable Anonymous authentication as suggested in other solutions I can no longer reach the Controller that triggers SSO. And the browser starts prompting for Windows Credentials. Do let me know if more details are required I will share all that I can.
User.Identity.Name is empty .Net Core 6.0 SAML SSO
114 views Asked by Siddharth Seth At
0
There are 0 answers
Related Questions in ASP.NET-MVC
- I have a problem outputing the roles on the page ListRoles.cshtml
- Dropdown list showing SQLServer2005SQLBrowserUser$DONSERVER instead of Active Directory group name in ASP.NET MVC C#
- Hosting ASP.NET MVC application on IIS web server using Windows 2019 server
- How to display only department fields associated with a selected department in student automation system?
- How to send select input data for form submission?
- Multi level project reference using dll
- How to upload file to Onedrive using ASP.NET MVC?
- ASP.NET MVC web app looping between fields only on some devices
- Is there any automatic job to load AD-groups?
- How to restrict admin js files to download
- Download PDF in ASP.NET MVC application
- How to add bootstrap theme/example into ASP.NET MVC 5?
- Web API works with Windows authentication enabled when consumed via Swagger but throws an unauthorized issue when accessed through web app
- ASP.Net Core 7.0 Web App (Model-View-Controller) ErrorViewModel OnGet OnPost do not get called or executed
- OAuth 2.0 keep getting Authorization has been denied for this request
Related Questions in .NET-CORE
- Repository manager receives the wrong connection string in .net core
- How can I overwrite the localization strings in a library
- Custom type resolution
- How to enable log to console Cosmos Client SDK requests
- Issue with Entity Framework Core: .Include() and .AsNoTracking() not displaying expected related entities
- Using Python CDK to bundle dotnet 8 code to AWS Lambda function
- How to make Visual Studio 2022 project launch Windows Terminal instead of PowerShell?
- Custom Metrics stop saving in App Insight after one hour
- How to send select input data for form submission?
- When I use built-in DockerFile in Visual Studio, I see no errors, but when I try to create image and container using terminal I get an error
- Failure to Execute the DBCommand: SQLite Err. 1 - C# / .NET / Entity Framework Core
- KeyCloak Handshake causing timeout
- problemas con los CORS en .net core 7 y angular 15
- Access Registed Scoped Services and Transient Services using GetService()
- .NET Core DB vs JSON model design
Related Questions in SINGLE-SIGN-ON
- Generate Databricks personal access token using REST API
- Allow external users to login using custom SAML app in Google Admin
- Handling errors in MSAL Redirect - reactjs login with microsoft sso
- How would single sign-on work for my multi-tenant application?
- How can we make an environment specific Token-based authorization using Ping Token?
- Is it possible to integrate Looker Studio with websites without keeping it public, to preserve data?
- OKTA SSO Driven API Invocation
- Is there any way to login SSO using RestAssured or using any API calls?
- Is it possible to interact with SSO between Website A and Website B?
- SSO to Grafana embeded in iframe
- Secure React App and .net 6 apis with Keycloack
- Integrating one tap sign in with phone from phone email - Converting html and javascript code to React JS
- I need SSO and Maven to work together in a Tomcat 9 Eclipse project, I have check the usual suspects but I think I missed something
- Firebase Authentication SAML resource metadata file
- How to add ForceAuthn flag on AWS cognito
Related Questions in SAML-2.0
- Institutional Login Page on a React Flask App
- Migrate from SAML extensions to SAML service provider and spring security
- Separate web application that does not get SAML authenticated when using Systainsys library and IIS
- How to handle encrypted SAML response with openssl
- "RelayState is invalid" Error in GitHub SAML SSO
- Spring Boot SAML Authentication Issue with Identity Provider (IdP) on Virtual Machine
- Do line breaks or spaces affect saml assertion validation?
- Azure Claim Regex - Unable to filter a claim
- SAML Assertion does not contain KeyInfo element in SubjectConfirmationData
- Adding Private Key to RelyingPartyRegistration in Spring Boot and Spring Security
- SAML Error - The server requires a signed SAML authentication request but no signature is present
- IdentityServer 4 - idsrv and idsrv.session cookies blocked on signin-oidc call
- Challenges with SAML Front Channel Logout and clearing cookies in sites on different domains
- shibboleth 5 with slapd integration login
- Unique SAML issuer required for each application within the same EntraID account
Related Questions in COMPONENT-SPACE
- Export local idp/sp metadata separately with ComponentSpace.Saml2 ASP.NET Core
- "Error: An SP-initiated SAML response from *IdP* was received unexpectedly", what could cause this error?
- Using 1 SSO provider, person A logs in, then logs out of our app, then person B is logged in as person A since person A's stilled logged into the SSO
- User.Identity.Name is empty .Net Core 6.0 SAML SSO
- Using SAML 2.0 assertion to get access token for Microsoft graph api
- Authentication and getting attributes using componentspace SAML library with ForgeRock backend in .NET core
- Component space trace is not working while Splitting serilog file in asp.net core
- Exposing IdentityServer4 as both IdentityProvider and ServiceProvider using ComponentSpace
- There is no pending identity provider logout request
- SAML 2.0 integration with Spring boot application issue
- Sync ADFS Claims without relogin
- Azure DevOps pipeline missing ComponentSpace licence
- Single Sign-On Service Url For Different Environments
- Adding External packages other than Nuget on Azure DevOps pipeline
- Load dynamic SAML schemes for IdentityServer4 using ComponentSpace
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)