Skip to content
This repository was archived by the owner on Aug 1, 2021. It is now read-only.

Commit 2d0304e

Browse files
Merge pull request #100 from brunohbrito/dev
v1.4.5
2 parents d1a4468 + 8d82ba7 commit 2d0304e

File tree

46 files changed

+198
-116
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+198
-116
lines changed

README.md

Lines changed: 71 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,53 @@
88
Jp Project is a Open Source UI Administration Tools for IdentityServer4 v2 - release 2.4.0.
99

1010

11-
## Admin UI
11+
## Table of Contents ##
12+
13+
- [Presentation](#presentation)
14+
- [Admin UI](#admin-ui)
15+
- [Login page](#login-page)
16+
- [Consent page](#consent-page)
17+
- [Profile](#profile)
18+
- [Demo](#demo)
19+
- [We are online at Azure.](#we-are-online-at-azure)
20+
- [Docker](#docker)
21+
- [Technologies](#technologies)
22+
- [Architecture](#architecture)
23+
- [Give a Star! ⭐](#give-a-star-%e2%ad%90)
24+
- [How to build](#how-to-build)
25+
- [Docs](#docs)
26+
- [Contributing](#contributing)
27+
- [Free](#free)
28+
- [v1.4.5](#v145)
29+
- [v1.4.0](#v140)
30+
- [v1.3](#v13)
31+
- [v1.2](#v12)
32+
- [What comes next?](#what-comes-next)
33+
- [License](#license)
34+
35+
------------------
36+
37+
# Presentation
38+
39+
Here some screenshots
40+
41+
## Admin UI ##
1242
<img src="https://github.com/brunohbrito/JP-Project/blob/master/docs/images/jp-adminui.gif" width="480" />
1343

14-
## Login page
44+
## Login page ##
1545
<img src="https://github.com/brunohbrito/JP-Project/blob/master/docs/images/login.JPG?raw=true" width="480" />
1646

17-
## Consent page
47+
## Consent page ##
1848
<img src="https://github.com/brunohbrito/JP-Project/blob/master/docs/images/consent-page.JPG?raw=true" width="480" />
1949

20-
## Profile
50+
## Profile ##
2151
<img src="https://github.com/brunohbrito/JP-Project/blob/master/docs/images/jp-usermanagement.gif" width="480" />
2252

53+
# Demo #
2354

24-
# We are online at Azure.
55+
Check our demo online.
56+
57+
## We are online at Azure.
2558

2659
<img align="right" width="100px" src="https://www.developpez.net/forums/attachments/p289604d1/a/a/a" />
2760

@@ -31,7 +64,9 @@ You can check also [SSO](https://jpproject.azurewebsites.net/sso/) and [User Man
3164

3265
_New users are readonly_
3366

34-
# Docker Ready ❤️
67+
# Docker #
68+
69+
Run through docker compose ❤️
3570

3671
Wanna try? As easy as:
3772

@@ -45,31 +80,37 @@ Linux users:
4580
* `docker-compose up`
4681

4782

48-
# How it was made
83+
# Technologies #
4984

50-
Written in ASP.NET Core and Angular 6.
85+
Check below how it was developed.
86+
87+
Written in ASP.NET Core and Angular 8.
5188
The main goal of project is to be a Management Ecosystem for IdentityServer4. Helping Startup's and Organization to Speed Up the Setup of User Management. Helping teams and entrepreneurs to achieve the company's primary purpose: Maximize shareholder value.
5289

53-
- Angular 7
90+
- Angular 8
5491
- Rich UI interface
5592
- ASP.NET Core 2.2
5693
- ASP.NET MVC Core
5794
- ASP.NET WebApi Core
5895
- ASP.NET Identity Core
96+
- Argon2 Password Hashing
5997
- MySql Ready
6098
- Sql Ready
99+
- Postgree Ready
100+
- SQLite Ready
61101
- Entity Framework Core 2.2
62102
- .NET Core Native DI
63103
- AutoMapper
64104
- FluentValidator
65105
- MediatR
66106
- Swagger UI
67107
- High customizable
68-
- Translation for English / Spanish (Autogenerated) / Portuguese (Autogenerated)
108+
- Translation for 7 different languages
109+
69110

70-
## Architecture:
111+
## Architecture
71112

72-
- Full architecture with responsibility separation concerns, SOLID and Clean Code
113+
- Architecture with responsibility separation concerns, SOLID and Clean Code
73114
- Domain Driven Design (Layers and Domain Model Pattern)
74115
- Domain Events
75116
- Domain Notification
@@ -98,19 +139,28 @@ Wait for ng to complete his proccess then go to http://localhost:5000!
98139

99140
Any doubts? Go to docs
100141

101-
## Docs
142+
# Docs #
102143

103144
Wanna start? please [Read the docs](https://jp-project.readthedocs.io/en/latest/index.html)
104145

105146
## Contributing
106147

107148
We'll love it! Please [Read the docs](https://jp-project.readthedocs.io/en/latest/index.html)
108149

109-
## Free
150+
## Free ##
110151

111152
If you need help building or running your Jp Project platform
112153
There are several ways we can help you out.
113154

155+
## v1.4.5
156+
157+
Breaking change: **Argon2 password hashing**. Be careful before update. If you are using the old version all users must need to update their passwords.
158+
159+
1. Bug fixes:
160+
1. Tooltip for admin-ui
161+
2. Argon2 Password Hasher
162+
3. Show version at footer
163+
114164
## v1.4.0
115165

116166
1. Added :boom: **New Translations** (auto-generate) :green_heart: :blue_heart:
@@ -125,7 +175,7 @@ There are several ways we can help you out.
125175

126176
2. Added integration with Azure DevOps for full CI/CD. ASAP SonarQube
127177

128-
3. Bug fixesz
178+
3. Bug fixes
129179

130180
## v1.3
131181

@@ -148,8 +198,11 @@ Check [Changelog.md](https://github.com/brunohbrito/JP-Project/blob/master/CHANG
148198

149199
# What comes next?
150200

151-
Code coverage
201+
* Code coverage
202+
* UI for Device codes
203+
* CI with SonarCloud
204+
152205

153-
UI for Device codes
206+
# License
154207

155-
CI with SonarCloud
208+
Jp Project is Open Source software and is released under the MIT license. This license allow the use of Jp Project in free and commercial applications and libraries without restrictions.

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ There are several ways we can help you out.
6060
intro/contributing
6161
intro/code_of_conduct
6262
intro/contributors.md
63-
intro/stress_test_results
63+
intro/stresstest_results
6464

6565
.. toctree::
6666
:maxdepth: 2
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The steps of testing was:
2121
6. Load login page
2222

2323
Machine config:
24-
^^^^^^^^^^^^^^
24+
^^^^^^^^^^^^^^^
2525

2626
Azure B1, it's the most basic Machine of Azure.
2727
* 100 ACU
@@ -41,13 +41,16 @@ During tests, average CPU utilization was 13,58% and Memory consumption was abou
4141

4242
.. image:: ../images/stress/during-blazemeter.png
4343

44+
4445
Timeline report
4546
^^^^^^^^^^^^^^^
47+
4648
.. image:: ../images/stress/timelinegraph.jpg
4749

4850

4951
Aggregate report
5052
^^^^^^^^^^^^^^^^
53+
5154
.. image:: ../images/stress/agreggatereport.JPG
5255

5356

src/Backend/Jp.Domain/Jp.Domain.csproj

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

1212
<ItemGroup>
1313
<PackageReference Include="FluentValidation" Version="8.4.0" />
14-
<PackageReference Include="IdentityServer4.EntityFramework" Version="2.5.0" />
14+
<PackageReference Include="IdentityServer4.EntityFramework" Version="2.5.3" />
1515
</ItemGroup>
1616

1717
</Project>

src/Backend/Jp.Infra.CrossCutting.Database/DbSettingsConfig.cs

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
1-
using Jp.Infra.Data.MySql.Configuration;
1+
using Jp.Infra.CrossCutting.Identity.Context;
2+
using Jp.Infra.CrossCutting.Identity.Entities.Identity;
3+
using Jp.Infra.Data.MySql.Configuration;
24
using Jp.Infra.Data.PostgreSQL.Configuration;
35
using Jp.Infra.Data.Sql.Configuration;
46
using Jp.Infra.Data.Sqlite.Configuration;
7+
using Microsoft.AspNetCore.Identity;
58
using Microsoft.Extensions.Configuration;
69
using Microsoft.Extensions.DependencyInjection;
710

811
namespace Jp.Infra.CrossCutting.Database
912
{
1013
public static class DbSettingsConfig
1114
{
12-
public static void ConfigureDatabase(this IServiceCollection services, IConfiguration configuration)
15+
public static void AddAuthentication(this IServiceCollection services, IConfiguration configuration)
1316
{
1417
var database = configuration["ApplicationSettings:DatabaseType"].ToUpper();
1518
var connString = configuration.GetConnectionString("SSOConnection");
@@ -28,6 +31,12 @@ public static void ConfigureDatabase(this IServiceCollection services, IConfigur
2831
services.AddIdentitySqlite(connString);
2932
break;
3033
}
34+
35+
services.AddIdentity<UserIdentity, UserIdentityRole>()
36+
.AddEntityFrameworkStores<ApplicationIdentityContext>()
37+
.AddDefaultTokenProviders();
38+
39+
services.UpgradePasswordSecurity().UseArgon2<IdentityUser>();
3140
}
3241

3342
public static void ConfigureIdentityServerDatabase(this IIdentityServerBuilder builder, IConfiguration configuration)

src/Backend/Jp.Infra.CrossCutting.Database/Jp.Infra.CrossCutting.Database.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
</PropertyGroup>
66

77
<ItemGroup>
8+
<PackageReference Include="JpProject.AspNetCore.PasswordHasher.Argon2" Version="1.0.2" />
89
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="2.2.0" />
910
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="2.2.0" />
10-
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="2.2.4">
11+
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="2.2.6">
1112
<PrivateAssets>all</PrivateAssets>
1213
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
1314
</PackageReference>

src/Backend/Jp.Infra.CrossCutting.Identity/Jp.Infra.CrossCutting.Identity.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
<PackageReference Include="Microsoft.AspNetCore.Authorization" Version="2.2.0" />
1818
</ItemGroup>
1919
<ItemGroup>
20-
<PackageReference Include="MailKit" Version="2.2.0" />
21-
<PackageReference Include="ServiceStack.Text.Core" Version="5.5.0" />
20+
<PackageReference Include="MailKit" Version="2.3.0" />
21+
<PackageReference Include="ServiceStack.Text.Core" Version="5.6.0" />
2222
</ItemGroup>
2323
<ItemGroup>
2424
<ProjectReference Include="..\Jp.Domain\Jp.Domain.csproj" />

src/Backend/Jp.Infra.CrossCutting.Identity/Services/MessageServices.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
using System.Threading.Tasks;
2-
using MailKit.Net.Smtp;
1+
using MailKit.Net.Smtp;
32
using MimeKit;
43
using MimeKit.Text;
4+
using System.Threading.Tasks;
55

66
namespace Jp.Infra.CrossCutting.Identity.Services
77
{
@@ -16,9 +16,9 @@ public AuthEmailMessageSender(IEmailConfiguration emailConfiguration)
1616
}
1717
public async Task SendEmailAsync(string email, string subject, string message)
1818
{
19-
if(!_emailConfiguration.SendEmail)
19+
if (!_emailConfiguration.SendEmail)
2020
return;
21-
21+
2222
var mimeMessage = new MimeMessage();
2323
mimeMessage.To.Add(new MailboxAddress(email));
2424
mimeMessage.From.Add(new MailboxAddress(_emailConfiguration.FromName, _emailConfiguration.FromAddress));

src/Backend/Jp.Infra.CrossCutting.IdentityServer/Configuration/IdentityServerConfig.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace Jp.Infra.CrossCutting.IdentityServer.Configuration
88
{
99
public static class IdentityServerConfig
1010
{
11-
public static IIdentityServerBuilder AddIdentityServer(this IServiceCollection services,
11+
public static IIdentityServerBuilder AddOAuth2(this IServiceCollection services,
1212
IConfiguration configuration, IHostingEnvironment environment, ILogger logger)
1313
{
1414

src/Backend/Jp.Infra.CrossCutting.IdentityServer/Jp.Infra.CrossCutting.IdentityServer.csproj

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

1414

1515
<ItemGroup>
16-
<PackageReference Include="IdentityServer4.AspNetIdentity" Version="2.5.0" />
16+
<PackageReference Include="IdentityServer4.AspNetIdentity" Version="2.5.3" />
1717
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="2.2.0" />
1818
</ItemGroup>
1919

0 commit comments

Comments
 (0)