All Questions
Tagged with authentication c#
5,875
questions
0
votes
1
answer
11
views
.ASPXAUTH cookie not being read by sub application
I have an asp.net v4.7.2 web app setup at, my.example.com in IIS. It uses asp.net Forms Authentication. It's Web.Config:
<httpCookies requireSSL="true" />
<authentication mode=&...
0
votes
1
answer
24
views
<AuthorizeView> not recognizing role claim
I have a Blazor Server app that uses Windows Auth. Based on the group memberships of the user, I am adding role claims using IClaimsTransformation. The group-to-role mapping is fetched from a DB.
This ...
0
votes
3
answers
55
views
ASP.NET Core 6.0 MVC : get session and cookies in view
Browser>Application>Cookies
I am attempting to create session and cookies in a ASP.NET Core 6 MVC project.
When I debug the project locally on my PC, the session and cookies are working as ...
0
votes
1
answer
64
views
How to authenticate an ASP.NET Core Web API using Azure AD token and custom claims from ASP.NET MVC app?
I have two applications: one built with ASP.NET MVC and the other an ASP.NET Core Web API. Users log in to the ASP.NET MVC application using Azure Active Directory (Azure AD). Upon successful login, I ...
-2
votes
0
answers
29
views
Is it possible for a windows desktop application to have user's OS credentials to log into the application?
The windows desktop application will not have a login screen. Instead, once the user is signed in to the PC, the user will be automatically signed in to the application. This will also need a Single ...
1
vote
0
answers
40
views
ASP.NET Core Web API : authentication users files
I'm working on an ASP.NET Core 6 Web API project where users upload their own files, and these files are stored in folders corresponding to their IDs (GUIDs) on the same Linux server.
To serve these ...
0
votes
0
answers
66
views
Blazor C# Error: One or more errors occurred. (Value cannot be null. (Parameter 'value'))
I am new to Blazor Development. Does any know how to solve this issue? I only have this issue if I login as a user. When I try to step into the code. It stop after the ApplicationDbContext class ...
1
vote
0
answers
33
views
Microsoft Entra ID and .NET Framework (Web Forms) - get user details to validate a local login
we need to integrate Entra ID login on a web application (.NET Web Forms based) but I'm not convinced about the approach.
Our application has a deep characterization of the user permissions, so we ...
0
votes
2
answers
34
views
Authorize actions in command handler
I have a problem with controllers authorization in C#. I use JWT authentication with token and role-based authorization in controllers.
Let's examine this endpoint.
[HttpDelete("{userId}/post/...
0
votes
1
answer
50
views
Change configuration for an app registration than for an enterprise application
I have an application running in Azure as an enterprise application and I would like to know how to configure authentication for this type of application. They have provided me with an XML file with ...
0
votes
1
answer
55
views
Windows Authentication not working over dev tunnel
In my asp net core backend I use Windows Authentication to secure some endpoints. In my Programm.cs I add the Authentication/Authorization like that:
builder.Services.AddAuthentication(...
1
vote
1
answer
30
views
Login with SMAL ITfoxtec.Identity.Saml2
I am using the library
Login with SMAL ITfoxtec.Identity.Saml2 to make a project that works with identity to authenticate user use SMAL to do so. The part of asking the person who accesses the system ...
0
votes
1
answer
47
views
How do I make it to where my login will accept either an email or username in the username field
namespace Login
{
public partial class logForm : Form
{
public logForm()
{
InitializeComponent();
}
SqlConnection con = new SqlConnection(@"...
0
votes
0
answers
66
views
Use Cookie Authentication for Microsoft Authentication in ASP.NET CORE Identity
I want to use Individual Logins and Microsoft Auth on my Blazor WebApp. Now, for debugging purposes, I don't want to sign in every time to the app. So I thought I can solve it with cookies. The cookie ...
0
votes
1
answer
50
views
Why does ASP.NET Core Web API not recognize when a user is logged in when passing a bearer token in the request header?
I set up a basic ASP.NET Core 8 Web API controller using AspNetCore.Identity.MongoDbCore package to connect to a MongoDB collection, and added a /api/user/{username} endpoint.
Program.cs:
using ...