Unless it's already taken, I'd be willing to submit a PR for this page to be updated for 2.0 - https://docs.microsoft.com/en-us/aspnet/core/security/authentication/identity-configuration
@scottsauber It's all yours. Thank you for volunteering. Let me know if you need help with anything.
Awesome! A few questions before I get started:
So instead of:
// Password settings
options.Password.RequireDigit = true;
options.Password.RequiredLength = 8;
options.Password.RequireNonAlphanumeric = false;
options.Password.RequireUppercase = true;
options.Password.RequireLowercase = false;
Replace with:
services.Configure<IdentityOptions>(options =>
{
// Password settings
options.Password.RequireDigit = true;
options.Password.RequiredLength = 8;
options.Password.RequireNonAlphanumeric = false;
options.Password.RequireUppercase = true;
options.Password.RequireLowercase = false;
});
Seems like we can get rid of the highlight? Not sure what it's highlighting.
Is it ok to document the UserOptions and SignInOptions here? So like each would be their own sections like the Password options, but would document these:
services.Configure<IdentityOptions>(options =>
{
options.User.RequireUniqueEmail = true;
options.SignIn.RequireConfirmedEmail = true;
options.SignIn.RequireConfirmedPhoneNumber = true;
});
Let me know what you think @scottaddie. Thanks!
@scottsauber
Sure feel free to document all of the options... Its probably also worth pointing out that you can configure them directly inside of AddIdentity(options => ...) as well
Started on this and will send the PR tomorrow.
Most helpful comment
Sure feel free to document all of the options... Its probably also worth pointing out that you can configure them directly inside of
AddIdentity(options => ...)as well