Skip to content

Commit 94951c1

Browse files
committed
Security doc update
1 parent a4d0094 commit 94951c1

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed

Blogifier.sln

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "docs", "docs", "{6015AFDB-9
3131
docs\Disqus.md = docs\Disqus.md
3232
docs\Import.md = docs\Import.md
3333
docs\Notifications.md = docs\Notifications.md
34+
docs\Security.md = docs\Security.md
3435
docs\SqlServer.md = docs\SqlServer.md
3536
docs\VideoAudio.md = docs\VideoAudio.md
3637
EndProjectSection
@@ -41,7 +42,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{BE5E262F
4142
build\build.ps1 = build\build.ps1
4243
EndProjectSection
4344
EndProject
44-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Upgrade", "src\Upgrade\Upgrade.csproj", "{CECA836F-2FFA-47DA-B846-8F44C2A4B783}"
45+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Upgrade", "src\Upgrade\Upgrade.csproj", "{CECA836F-2FFA-47DA-B846-8F44C2A4B783}"
4546
EndProject
4647
Global
4748
GlobalSection(SolutionConfigurationPlatforms) = preSolution

docs/Security.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
Blogifier uses default ASP.NET Core Identity. User data saved in the database in the `AspNet...`
2+
tables and managed by calling standard UserManager and SignInManager.
3+
4+
### User Roles.
5+
There are no real roles, but Blogifier differentiates between admin and regular users. Admin can
6+
manage application functionality, including create/delete users. Standard users can only write
7+
and publish posts and upload and manage files.
8+
9+
### Identity options
10+
Identity options defined in the `Startup.cs` and can be modified if do not fit requirements.
11+
By default, they pretty relaxed: you can use any characters in the user name and only password
12+
restriction is to be at least six characters long.
13+
14+
```csharp
15+
services.AddIdentity<AppUser, IdentityRole>(options => {
16+
options.Password.RequireDigit = false;
17+
options.Password.RequiredLength = 6;
18+
options.Password.RequireNonAlphanumeric = false;
19+
options.Password.RequireUppercase = false;
20+
options.Password.RequireLowercase = false;
21+
options.User.AllowedUserNameCharacters = null;
22+
})
23+
```

src/Core/Core.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>netcoreapp2.1</TargetFramework>
5-
<Version>2.0.2.0</Version>
5+
<Version>2.0.2.1</Version>
66
</PropertyGroup>
77

88
<ItemGroup>

0 commit comments

Comments
 (0)