How to get url parameter to my controller?
I’m making a function to reset the password of a user using ASP.NET Identity. However, the token is not being picked up in my controller. When I submit the form, it says
I’m making a function to reset the password of a user using ASP.NET Identity. However, the token is not being picked up in my controller. When I submit the form, it says
I know Microsoft provides a Google-specific OIDC package (Microsoft.AspNetCore.Authentication.Google) which takes an option in .AddGoogle() to specify AccessType that can be set to offline.
I used ASP.NET Identity before and now I want to use ASP.NET Identity Core in my ASP.NET Core + Angular app.
I’m using a free project from GitHub that uses Blazor with EF Identity and SQLite. Its a good starting point for me to learn and add more functionality. Currently, I would like to add authorization to the project to allow specific users to have access to particular pages. My first step is to add default roles and account. I managed to find some sample codes that do that during startup. However, I get the following runtime error.
I am developing a Razor application and I need the Admin to assign or update roles of the Users. I am using a checkbox to carry out this action. So far, I have been able to populate the view to show the users and their respective roles ticked in the checkbox, but I haven’t been able to update their roles, as anytime a checkbox is ticked to add a role, it doesn’t add the role to the user. I think this line is the culprit: var selectedRoles = model.Where(x => x.Selected).Select(y => y.RoleName);.
I’ve been following several tutorial on integrating the OWin identity in my ASP.net app, for instance this one
I have read a lot of answers on stackoverflow for similar problems but still cannot figure out what I am doing wrong.
I’m learning asp.net core 3.1 with Razor pages. While watching tutorials on identity/authentication/authorization, a common example approach for user creation/registration form is to wrap some IsAdmin checkbox or user role selection dropdown box inside a @if(User.IsInRole(...)) block, to be bound and checked later in post handlers. This makes such that regular users can register as guests/customers etc, while admins can create other admin roles.
I am trying to integrate user authentication between an MVC 4.7.1 client and an ASP.NET Core 3.1 IdentityServer4 & ASP.NET Identity service.
External service configuration not working with identity server 4.