Skip to main content

Questions tagged [asp.net-identity]

The ASP.NET Identity system is designed to replace the previous ASP.NET Membership and Simple Membership systems. Use the ASP.NET Core Identity tag for questions about Identity in ASP.NET Core.

Filter by
Sorted by
Tagged with
0 votes
1 answer
112 views

I am trying to do a POST request to an API endpoint api/auth/assign-role with this data: ...
bibashmanjusubedi's user avatar
Advice
0 votes
1 replies
64 views

We have several applications built in .NET Framework 4.7.2 that uses .NET Identity for authorisation and authentication. I am trying to implement a session timeout, in line with OWASP recommendations. ...
Martin Vaughan's user avatar
0 votes
1 answer
298 views

I'm trying to connect vs code to a local MCP server that is using HTTPTransport and is secured by OAuth. It was working fine up to the point I started validating the scope. ...
Bruno Willian's user avatar
0 votes
1 answer
152 views

I have a simple ASP.NET MVC app with .NET 4.8. I want to use keycloak as security management and my app connect to it via openid connect protocol. To do this, I've created a ...
hdv212's user avatar
  • 95
0 votes
0 answers
111 views

I have an ASP.NET Core application that does multi-tenanting based on the path. For example to log into tenant1 you would go do https://domain.name/tenant1 and to log in as tenant2 you would go do ...
ghosttie's user avatar
  • 728
1 vote
1 answer
60 views

I’m trying to display user identities and fetch a list of users, but buttons stop functioning if I use ApplicationUser (inherited from IdentityUser) retrieved via UserManager. ...
Alex T's user avatar
  • 13
0 votes
1 answer
394 views

I'm building a Blazor application using the interactive server rendermode and I want to implement a custom login page using ASP.NET Core Identity. For authentication, I'm configuring IdentityCore like ...
sir's user avatar
  • 29
0 votes
0 answers
57 views

I am running into an issue with trying to use .NET Identity with a MongoDB backend. The problem is related to authorization. I want the API to use JWT but it would seem the package I am using defaults ...
Age of Empires's user avatar
0 votes
0 answers
100 views

I'm using OpenIddict 6.3.0 with ASP.NET Core 8, and I want to customize the behavior when using the refresh_token grant. ✅ Goal: When a refresh_token is used: I want to reuse the existing refresh ...
Suhail Keyjani's user avatar
0 votes
0 answers
81 views

I developed a website using .NET 6.0 and ASPNET Identity. I dont have any cookie or session related operations in my controllers. Also, everything perfectly works in my development enviroment (I mean, ...
mesut yıldırım's user avatar
0 votes
0 answers
42 views

I am implementing a method that receives data from an API. At the moment, the API is adding the data to the database by using a loop. This however is looking more and more unreliable as the data keeps ...
Victor Mwangi's user avatar
1 vote
0 answers
223 views

I've been trying to enhance my Blazor Identity login page with MudBlazor components. I've encountered multiple errors that prevent it from working: SSL Certificate Error - When I first added ...
Hakkology's user avatar
0 votes
1 answer
89 views

I'm working on my final year project(fyp) and intended to add an account system using EF Core Identity. When I started my project I found it difficult to get to grasps with the best way to use ...
user30261227's user avatar
0 votes
0 answers
85 views

I am working on a project that uses OpenIdDict für user authentication, thus, generating and validating JWTs (Java web tokens, HTTP header "Bearer"). Currently, the prototype relies on a ...
Ingmar's user avatar
  • 2,728
0 votes
0 answers
95 views

I'm using Duende Identity Server v 7.0.7 and I need to add custom property to Client model. So basically add column to "Clients" table to store client specific value. I know it is possible ...
Anton Ilin's user avatar
0 votes
0 answers
57 views

I'm attempting to integrate AspNetCore.Identity.MongoDbCore into my application. However, upon running the application, I encounter the following error: System....
Zoltán's user avatar
  • 208
1 vote
0 answers
50 views

I'm trying to reset user's passwords and I keep getting "username already taken" as an error. I don't quite understand... I'm not trying to create a new user, I'm trying to reset an existing ...
Barry Franklin's user avatar
0 votes
1 answer
48 views

I am trying to access the UserRoles property from my ApplicationUser entity and I keep getting an error message stating ...
Andrew's user avatar
  • 2,013
-1 votes
1 answer
65 views

I wanted to create a many to many connection between the identity user and another table but when i modified my identity context and wanted to create a migration i got the following error Unable to ...
Virgil's user avatar
  • 1
0 votes
0 answers
110 views

How can I specify WithAppOnly() globally for a GraphServiceClient, so I don't have to specify it for every single Microsoft Graph request? Consider the following code: ...
Shuzheng's user avatar
  • 14.7k
0 votes
0 answers
32 views

I have an ASP.NET MVC web application using Microsoft Identity authentication with Google Authentication features, all works great from the website. The web site also exposes APIs for clients apps (a ...
Marco Lepri's user avatar
0 votes
0 answers
72 views

I'm using EF 6 with .NET 4.8. All data entities classes are defined in a Model project so it can be used by client apps. Only ...
orenb's user avatar
  • 1
0 votes
2 answers
90 views

EF creates UserId1 and RoleId1 in UserRoles table when I try to add migration. there are messages: The foreign key property 'UserRole.RoleId1' was created in shadow state because a conflicting ...
hrdfgn's user avatar
  • 5
0 votes
2 answers
136 views

I have integrated Google login with my ASP.NET app. So in callback call from google auth I get code that I use to get user token: ...
Michał Turczyn's user avatar
1 vote
1 answer
482 views

So I've ran into an issue that I am not sure how to handle. You see I am trying to deal with an Initial seeding of Admin data for my App. But the thing is.. Since I am using Identity to handle both ...
yzkael's user avatar
  • 363
0 votes
0 answers
113 views

I'm in the process of adding Google Authentication to .NET 8 web app behind NGINX reverse proxy. App itself is simple CRUD web app. I do have Let's Encrypt certificate for https, it is terminating on ...
Gytis Murauskas's user avatar
0 votes
3 answers
187 views

I want to retrieve the authentication method of a logged-in user, e.g. something like "by username/password", or for oauth cases "via facebook" or "via google". After ...
Grimm's user avatar
  • 811
0 votes
0 answers
43 views

I have a default connection string which has the default connection for the identity server so I register this identity server successfully, but I have tenants stored in a database table and I have a ...
Youssef Alamrousy's user avatar
0 votes
1 answer
94 views

I had to extend IdentityUser model (and AspNetUser table of course) with some extra field (RegistrationDate) so I created ...
1_bug's user avatar
  • 5,796
-13 votes
1 answer
325 views

I am working on adding the ability to authenticate in my app using Google OAuth2. My app is a Blazor Interactive Server using the Identity Library (not Blazor Identity). I don't have this working yet. ...
David Thielen's user avatar
0 votes
1 answer
88 views

I have a WebApi project that has endpoints for all the business logic, including an implementation of the Identity endpoints for login/register/etc. The cookie authentication works fine on the WebApi ...
Trent W's user avatar
0 votes
2 answers
204 views

I am working on a .NET 8 Blazor project with .NET Identity authentication. My goal is to automatically log in the user and redirect them within the OnInitializedAsync method based on an OTP provided ...
Coder3000's user avatar
  • 477
1 vote
0 answers
45 views

I'm currently implementing token-based auth with refresh tokens in my .NET app. Right now I have a custom RefreshTokens collection in my ApplicationUser: ...
filur's user avatar
  • 1,646
0 votes
0 answers
165 views

I am facing a issue when Identity server redirect from https:/sso.com/connect/authorize?.. to https://anotherhost.com/sigin-oidc ...
gaurav's user avatar
  • 1,335
1 vote
1 answer
558 views

To give you some context: I am trying to implement a Refresh/Access Token Authentication security to a simple Web API using ASPNET Core. Its going well so far.. It does work! Just not as expected. To ...
yzkael's user avatar
  • 363
1 vote
1 answer
197 views

Followed the instructions here for browser-delegated authentication, steps completed under .NET MAUI including "Prepare tenant", "Create .NET MAUI app", and "Sign in and sign ...
Ryan Langton's user avatar
  • 6,190
0 votes
1 answer
105 views

I'm creating a MSAL web API using instructions here. When following the instructions for "Expose the API", I am not able to adhere to step b. (For Who Can consent, ensure the Admins and ...
Ryan Langton's user avatar
  • 6,190
0 votes
0 answers
530 views

We're looking at implementing Elsa 3.0 into our asp.net core web server that currently uses wasm as the client. It's all currently setup with if it's own identity combined with OpenID etc. Im just ...
Matt's user avatar
  • 2,913
0 votes
1 answer
178 views

I'm working on asp.net MVC project based on .NET 8.0. My site is using ASP.Net Core Identity for user authentication. It's working fine. I have to connect to remote server which is using OAuth2 ...
Peter's user avatar
  • 3
-4 votes
1 answer
96 views

execution of my web applications fails with following runtime error: Could not load file or assembly 'Microsoft.Owin, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its ...
Thierry Verhaegen's user avatar
0 votes
1 answer
281 views

I have an ASP.NET Core Razor Pages Webpage which can be browsed to on smartphones (Android and IPhones). I use ASP.NET Core Identity to secure access to the site. My users want to add icons to the ...
Flipps's user avatar
  • 11
0 votes
1 answer
98 views

I've got a razor pages/mvc web app that uses ASP.Net Core Identity for authentication and authorization. I'm starting to develop a mobile app version of the site using MAUI and wanting to access many ...
Growable's user avatar
2 votes
1 answer
345 views

I have an ASP.NET Core Blazor web app, which uses Identity for authentication. The server project's Program.cs contains the following (rather trivial) endpoint... <...
Avrohom Yisroel's user avatar
0 votes
1 answer
50 views

I want to remove the UserName field from the IdentityUser I don't want to use it
Marko Sami's user avatar
1 vote
1 answer
138 views

I have implementing external login in my NET Core 8 web application. Ths is the callback method: ...
jstuardo's user avatar
  • 4,553
-1 votes
2 answers
118 views

I've set up Firebase Authentication for my app with an OIDC provider. In this OIDC provider, the email address isn't required to be unique. For instance, users from the same company could share their ...
katkak's user avatar
  • 346
-1 votes
1 answer
31 views

I am currently using .Net Framework Identity And been following a video tutorial. ...
Adi's user avatar
  • 17
1 vote
1 answer
32 views

I have an AuthController class with a register Post request: ...
dinoboy's user avatar
  • 107

1
2 3 4 5
181