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

Commit 32548f8

Browse files
committed
update npm and nuget packages version
1 parent a99c91c commit 32548f8

16 files changed

Lines changed: 2337 additions & 374 deletions

File tree

README.md

Lines changed: 67 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,67 @@
33
[![Build status](https://ci.appveyor.com/api/projects/status/08v6mg6q439x16xt?svg=true)](https://ci.appveyor.com/project/brunohbrito/jp-project)
44
[![Build Status](https://dev.azure.com/brunohbrito/Jp-Project/_apis/build/status/brunohbrito.JP-Project)](https://dev.azure.com/brunohbrito/Jp-Project/_build/latest?definitionId=1)
55
[![License](https://img.shields.io/github/license/brunohbrito/jp-project.svg)](LICENSE)
6+
![DOCS](https://readthedocs.org/projects/jp-project/badge/?version=latest&style=flat)
67

7-
Jp Project is a Open Source Quickstart for IdentityServer4.
8+
Jp Project is a Open Source UI Administration Panel for IdentityServer4.
9+
10+
11+
## Admin UI
12+
<img src="https://github.com/brunohbrito/JP-Project/blob/master/docs/images/jp-adminui.gif" width="480" />
13+
14+
## Login page
15+
<img src="https://github.com/brunohbrito/JP-Project/blob/master/docs/images/login.JPG?raw=true" width="480" />
16+
17+
## Consent page
18+
<img src="https://github.com/brunohbrito/JP-Project/blob/master/docs/images/consent-page.JPG?raw=true" width="480" />
19+
20+
## Profile
21+
<img src="https://github.com/brunohbrito/JP-Project/blob/master/docs/images/jp-usermanagement.gif" width="480" />
22+
23+
24+
# We are online at Azure.
825

926
<img align="right" width="100px" src="https://www.developpez.net/forums/attachments/p289604d1/a/a/a" />
27+
28+
Check it now at [Jp Project](https://jpproject.azurewebsites.net/admin-ui/).
29+
30+
You can check also [SSO](https://jpproject.azurewebsites.net/sso/) and [User Management](https://jpproject.azurewebsites.net/user-management/)
31+
32+
33+
_New users are readonly_
34+
35+
1036
Written in ASP.NET Core and Angular 6.
1137
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.
1238

13-
# We are online at Azure. Check it now!
14-
[Jp Project](https://jpproject.azurewebsites.net/sso/)
15-
<small> New users are readonly</small>
39+
# How it was written
40+
- Angular 6
41+
- Rich UI interface
42+
- ASP.NET Core 2.2
43+
- ASP.NET MVC Core
44+
- ASP.NET WebApi Core
45+
- ASP.NET Identity Core
46+
- MySql Ready
47+
- Sql Ready
48+
- Entity Framework Core 2.0
49+
- .NET Core Native DI
50+
- AutoMapper
51+
- FluentValidator
52+
- MediatR
53+
- Swagger UI
54+
- High customizable
55+
- Translation for English / Spanish (Autogenerated) / Portuguese (Autogenerated)
56+
57+
## Architecture:
58+
59+
- Full architecture with responsibility separation concerns, SOLID and Clean Code
60+
- Domain Driven Design (Layers and Domain Model Pattern)
61+
- Domain Events
62+
- Domain Notification
63+
- CQRS (Imediate Consistency)
64+
- Event Sourcing
65+
- Unit of Work
66+
- Repository and Generic Repository
1667

1768
## Give a Star! ⭐
1869

@@ -26,19 +77,7 @@ Jp Project is built against ASP.NET Core 2.1.
2677

2778
Wait for ng to complete his proccess then go to http://localhost:5000!
2879

29-
# Expected after start project.
3080

31-
## Admin UI
32-
<img src="https://github.com/brunohbrito/JP-Project/blob/master/docs/images/admin-home.jpg?raw=true" width="480" />
33-
34-
## Login page
35-
<img src="https://github.com/brunohbrito/JP-Project/blob/master/docs/images/login.JPG?raw=true" width="480" />
36-
37-
## Consent page
38-
<img src="https://github.com/brunohbrito/JP-Project/blob/master/docs/images/consent-page.JPG?raw=true" width="480" />
39-
40-
## Profile
41-
<img src="https://github.com/brunohbrito/JP-Project/blob/master/docs/images/profile.JPG?raw=true" width="480" />
4281

4382
Any doubts? Go to docs
4483

@@ -55,8 +94,19 @@ We'll love it! Please [Read the docs](https://jp-project.readthedocs.io/en/lates
5594
If you need help building or running your Jp Project platform
5695
There are several ways we can help you out.
5796

97+
## v1.1
98+
- Minor bugs correction
99+
- Added localization feature to SSO
100+
- Added translation feature to User Management
101+
- Silent refresh for angular-oauth2-oidc both for User Management and Admin
102+
- Changed Security Headers to accept Azure Application Insights
103+
104+
105+
## v1.0
106+
* First release
107+
58108
# What comes next?
59109

60110
Code coverage
61111

62-
Thinking about create separated repo's for each part of solution.
112+
Thinking about create separated repo's for each part of solution.

docs/images/jp-adminui.gif

9.56 MB
Loading

docs/images/jp-usermanagement.gif

1.39 MB
Loading

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
using System.Reflection;
2-
using Jp.Infra.CrossCutting.Identity.Entities.Identity;
1+
using Jp.Infra.CrossCutting.Identity.Entities.Identity;
32
using Microsoft.AspNetCore.Hosting;
43
using Microsoft.Extensions.Configuration;
54
using Microsoft.Extensions.DependencyInjection;
@@ -12,7 +11,7 @@ public static class IdentityServerConfig
1211
public static IIdentityServerBuilder AddIdentityServer(this IServiceCollection services,
1312
IConfiguration configuration, IHostingEnvironment environment, ILogger logger)
1413
{
15-
14+
1615
var builder = services.AddIdentityServer(
1716
options =>
1817
{

src/Backend/Jp.Infra.Migrations.MySql.Identity/Jp.Infra.Migrations.MySql.csproj

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,4 @@
1515
<ProjectReference Include="..\Jp.Infra.Data\Jp.Infra.Data.csproj" />
1616
</ItemGroup>
1717

18-
<ItemGroup>
19-
<Reference Include="Jp.Infra.Data">
20-
<HintPath>bin\Debug\netcoreapp2.1\Jp.Infra.Data.dll</HintPath>
21-
</Reference>
22-
</ItemGroup>
23-
2418
</Project>

src/Backend/Jp.UserManagement/Controllers/ClientController.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
using System.Collections.Generic;
2-
using System.Linq;
3-
using System.Threading.Tasks;
4-
using IdentityServer4.Models;
1+
using IdentityServer4.Models;
52
using Jp.Application.Interfaces;
63
using Jp.Application.ViewModels;
74
using Jp.Application.ViewModels.ClientsViewModels;
@@ -11,6 +8,8 @@
118
using MediatR;
129
using Microsoft.AspNetCore.Authorization;
1310
using Microsoft.AspNetCore.Mvc;
11+
using System.Collections.Generic;
12+
using System.Threading.Tasks;
1413

1514
namespace Jp.Management.Controllers
1615
{

src/Backend/Jp.UserManagement/Jp.Management.csproj

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,17 @@
44
<TargetFramework>netcoreapp2.2</TargetFramework>
55
<UserSecretsId>9c91d295-54c5-4d09-9bd6-fa56fb74011b</UserSecretsId>
66
<DockerTargetOS>Linux</DockerTargetOS>
7-
<ApplicationInsightsResourceId>/subscriptions/ce40329b-ac99-4c5f-ab72-539cc648b3c1/resourcegroups/NewNasa/providers/microsoft.insights/components/Allto-SSO</ApplicationInsightsResourceId>
8-
<ApplicationInsightsAnnotationResourceId>/subscriptions/ce40329b-ac99-4c5f-ab72-539cc648b3c1/resourcegroups/NewNasa/providers/microsoft.insights/components/Allto-SSO</ApplicationInsightsAnnotationResourceId>
97
</PropertyGroup>
108

119
<ItemGroup>
1210
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="6.0.0" />
13-
<PackageReference Include="IdentityServer4" Version="2.3.2" />
11+
<PackageReference Include="IdentityServer4" Version="2.4.0" />
1412
<PackageReference Include="IdentityServer4.AccessTokenValidation" Version="2.7.0" />
1513
<PackageReference Include="MediatR.Extensions.Microsoft.DependencyInjection" Version="4.1.0" />
1614
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.6.1" />
1715
<PackageReference Include="Microsoft.AspNetCore.App" />
18-
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.4.4" />
19-
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="2.2.2" />
16+
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.4.10" />
17+
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="2.2.3" />
2018
<PackageReference Include="Serilog.AspNetCore" Version="2.1.1" />
2119
<PackageReference Include="Serilog.Sinks.ApplicationInsights" Version="3.0.2" />
2220
<PackageReference Include="Serilog.Sinks.Console" Version="3.1.1" />
@@ -34,8 +32,4 @@
3432
<ProjectReference Include="..\Jp.Infra.Migrations.Sql.Identity\Jp.Infra.Migrations.Sql.csproj" />
3533
</ItemGroup>
3634

37-
<ItemGroup>
38-
<WCFMetadata Include="Connected Services" />
39-
</ItemGroup>
40-
4135
</Project>

src/Backend/Jp.UserManagement/jpProject_sso_log.txt

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60126,3 +60126,28 @@ ORDER BY `t4`.`Id`
6012660126
2019-03-02 12:41:08.426 -03:00 [INF] Executing ObjectResult, writing value of type 'Jp.Infra.CrossCutting.Tools.Model.DefaultResponse`1[[IdentityServer4.Models.Client, IdentityServer4.Storage, Version=2.3.1.0, Culture=neutral, PublicKeyToken=93d4430489de4ef4]]'.
6012760127
2019-03-02 12:41:08.429 -03:00 [INF] Executed action Jp.Management.Controllers.ClientsController.Details (Jp.Management) in 87.043500000000009ms
6012860128
2019-03-02 12:41:08.433 -03:00 [INF] Request finished in 107.1078ms 200 application/json; charset=utf-8
60129+
2019-03-25 23:39:11.384 -03:00 [INF] Authority URI: https://localhost:5000
60130+
2019-03-25 23:39:12.521 -03:00 [INF] User profile is available. Using 'C:\Users\Bruno\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest.
60131+
2019-03-25 23:47:40.398 -03:00 [INF] Authority URI: https://localhost:5000
60132+
2019-03-25 23:47:41.399 -03:00 [INF] User profile is available. Using 'C:\Users\Bruno\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest.
60133+
2019-03-26 01:19:46.893 -03:00 [INF] Request starting HTTP/1.1 OPTIONS https://localhost:5003/clients/list
60134+
2019-03-26 01:19:46.908 -03:00 [WRN] The CORS protocol does not allow specifying a wildcard (any) origin and credentials at the same time. Configure the policy by listing individual origins if credentials needs to be supported.
60135+
2019-03-26 01:19:46.912 -03:00 [INF] CORS policy execution successful.
60136+
2019-03-26 01:19:46.918 -03:00 [INF] Request finished in 28.467ms 204
60137+
2019-03-26 01:19:46.942 -03:00 [INF] Request starting HTTP/1.1 GET https://localhost:5003/clients/list
60138+
2019-03-26 01:19:46.944 -03:00 [WRN] The CORS protocol does not allow specifying a wildcard (any) origin and credentials at the same time. Configure the policy by listing individual origins if credentials needs to be supported.
60139+
2019-03-26 01:19:46.947 -03:00 [INF] CORS policy execution successful.
60140+
2019-03-26 01:19:47.193 -03:00 [INF] Successfully validated the token.
60141+
2019-03-26 01:19:47.199 -03:00 [DBG] AuthenticationScheme: Bearer was successfully authenticated.
60142+
2019-03-26 01:19:47.345 -03:00 [INF] Route matched with {action = "List", controller = "Clients"}. Executing action Jp.Management.Controllers.ClientsController.List (Jp.Management)
60143+
2019-03-26 01:19:47.366 -03:00 [INF] Authorization was successful.
60144+
2019-03-26 01:19:48.160 -03:00 [INF] Entity Framework Core 2.2.2-servicing-10034 initialized 'JpContext' using provider 'Pomelo.EntityFrameworkCore.MySql' with options: MigrationsAssembly=Jp.Infra.Migrations.MySql
60145+
2019-03-26 01:19:48.168 -03:00 [INF] Executing action method Jp.Management.Controllers.ClientsController.List (Jp.Management) - Validation state: "Valid"
60146+
2019-03-26 01:19:48.331 -03:00 [WRN] The LINQ expression 'orderby [a].ToModel().ClientName asc' could not be translated and will be evaluated locally.
60147+
2019-03-26 01:19:48.515 -03:00 [INF] Executed DbCommand (26ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
60148+
SELECT `a`.`Id`, `a`.`AbsoluteRefreshTokenLifetime`, `a`.`AccessTokenLifetime`, `a`.`AccessTokenType`, `a`.`AllowAccessTokensViaBrowser`, `a`.`AllowOfflineAccess`, `a`.`AllowPlainTextPkce`, `a`.`AllowRememberConsent`, `a`.`AlwaysIncludeUserClaimsInIdToken`, `a`.`AlwaysSendClientClaims`, `a`.`AuthorizationCodeLifetime`, `a`.`BackChannelLogoutSessionRequired`, `a`.`BackChannelLogoutUri`, `a`.`ClientClaimsPrefix`, `a`.`ClientId`, `a`.`ClientName`, `a`.`ClientUri`, `a`.`ConsentLifetime`, `a`.`Created`, `a`.`Description`, `a`.`DeviceCodeLifetime`, `a`.`EnableLocalLogin`, `a`.`Enabled`, `a`.`FrontChannelLogoutSessionRequired`, `a`.`FrontChannelLogoutUri`, `a`.`IdentityTokenLifetime`, `a`.`IncludeJwtId`, `a`.`LastAccessed`, `a`.`LogoUri`, `a`.`NonEditable`, `a`.`PairWiseSubjectSalt`, `a`.`ProtocolType`, `a`.`RefreshTokenExpiration`, `a`.`RefreshTokenUsage`, `a`.`RequireClientSecret`, `a`.`RequireConsent`, `a`.`RequirePkce`, `a`.`SlidingRefreshTokenLifetime`, `a`.`UpdateAccessTokenClaimsOnRefresh`, `a`.`Updated`, `a`.`UserCodeType`, `a`.`UserSsoLifetime`
60149+
FROM `Clients` AS `a`
60150+
2019-03-26 01:19:48.670 -03:00 [INF] Executed action method Jp.Management.Controllers.ClientsController.List (Jp.Management), returned result Microsoft.AspNetCore.Mvc.OkObjectResult in 495.6943ms.
60151+
2019-03-26 01:19:48.678 -03:00 [INF] Executing ObjectResult, writing value of type 'Jp.Infra.CrossCutting.Tools.Model.DefaultResponse`1[[System.Collections.Generic.IEnumerable`1[[Jp.Application.ViewModels.ClientsViewModels.ClientListViewModel, Jp.Application, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'.
60152+
2019-03-26 01:19:48.691 -03:00 [INF] Executed action Jp.Management.Controllers.ClientsController.List (Jp.Management) in 1339.6496ms
60153+
2019-03-26 01:19:48.700 -03:00 [INF] Request finished in 1758.3583ms 200 application/json; charset=utf-8

0 commit comments

Comments
 (0)