IdentityServer4.Admin | The administration for the IdentityServer4 and AspNet Core Identity | Identity Management library
kandi X-RAY | IdentityServer4.Admin Summary
kandi X-RAY | IdentityServer4.Admin Summary
The administration for the IdentityServer4 and Asp.Net Core Identity
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of IdentityServer4.Admin
IdentityServer4.Admin Key Features
IdentityServer4.Admin Examples and Code Snippets
Community Discussions
Trending Discussions on IdentityServer4.Admin
QUESTION
I am posting this in order someone else has the same problem, because I couldn't find any online documentation.
The problem:
Using https://github.com/skoruba/IdentityServer4.Admin (IdentityServer4, using Microsoft.AspnetCore.Identity for authentication), how to change the default Authenticator TOTP and use email-based OTP instead?
...ANSWER
Answered 2021-Dec-02 at 11:49Find the following line in AccountController:
return RedirectToAction(nameof(LoginWith2fa), new { model.ReturnUrl, RememberMe = model.RememberLogin });
Add before:
var code = await _userManager.GenerateTwoFactorTokenAsync(user, "Email");
_emailSender.SendEmailAsync(user.Email, "TwoFactor code", htmlEmail);
Find line:
var result = await _signInManager.TwoFactorAuthenticatorSignInAsync(authenticatorCode, model.RememberMe, model.RememberMachine);
Replace it with:
var result = await _signInManager.TwoFactorSignInAsync("Email", authenticatorCode, model.RememberMe, model.RememberMachine);
I hope it saves someone some trouble.
QUESTION
I'm using https://github.com/skoruba/IdentityServer4.Admin repository for my project.
I created ViewModel class (public class CreateDateViewModel : IdentityUser) for some custom fields (CreateDate) and inherited it from IdentityUser. After migration (Add-Migration "MigrationName" -Context IdentityServerConfigurationDbContext -o Migrations/IdentityServerConfiguration) and update the database, the field appeared in the database, but the Account controller still can't access the user.CreateDate property (var user = await _userManager.GetUserAsync(model.UserName); user.CreateDate is missing)
Can you suggest what to do?
...ANSWER
Answered 2021-Jun-08 at 15:53After some time I got the answer and since there are no comments here I decided to answer it for myself. If someone faces the same issue, know that it's better to put this information into claims instead of creating new columns in DB. So, there is OpenIDProfile.cs, AddressClaimConstants, and OpenidClaimsHelpers.cs files you need to modify and add your own user claims. Then you need to call method updateuserclaims - synchronize existing and new claims then store them into UserClaims.
anywhere in your controller, you can get these claims:
you can find more here https://github.com/skoruba/IdentityServer4.Admin/issues/308
QUESTION
i use Skoruba IdentityServer4 fro my projects identity,when i run Skoruba IdentityServer4 github i see this message
and check used port in cmd with yhis code
...ANSWER
Answered 2020-Sep-06 at 16:40This problem occurs when you are in a country like Cuba, North Korea, Iran and Syria, etc. that are under sanctions. You must use vpn
QUESTION
I want to secure my asp.net core 3.1 web apps using Identity Server 4 (the popular OpenID Connect and OAuth Framework). I downloaded Skoruba's IdentityServer4 project and I'm trying to change the default culture of it, but I'm having problems.
The default culture code of this project is "en" and all of the outputs (labels, error messages, titles, views, ...) in this project are in English. I want to change those outputs to Persian and change the site's language to Persian.
You can see the source of the project at here.
I changed some files of the project like below. The appsettings.js
file:
ANSWER
Answered 2020-May-06 at 12:05We handled this by overriding default culture cookie in HomeController
.
Put these codes on HomeController
of both Admin and Identity projects.
QUESTION
I am currently using this approach for loading entity and their related entities with AsNoTracking
:
ANSWER
Answered 2020-May-06 at 21:35As EF Core documentation says that v3 now generates joins and this query is a victim of cartesian explosion problem https://docs.microsoft.com/en-us/ef/core/querying/related-data
Documentation says also that in previous versions EF was generating separate query for each include. So in my opinion fine solution would be
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install IdentityServer4.Admin
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page