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

Commit a5babb7

Browse files
committed
v1.4.5
bugs fixes e new features
1 parent 09c6f82 commit a5babb7

File tree

13 files changed

+110
-30
lines changed

13 files changed

+110
-30
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.

src/Frontend/Jp.AdminUI/package-lock.json

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Frontend/Jp.AdminUI/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
"ng2-file-upload": "1.3.0",
6868
"ng2-img-cropper": "0.9.0",
6969
"ng2-material-dropdown": "^0.10.1",
70+
"ng2-tooltip-directive": "^2.1.9",
7071
"ng2-validation": "4.2.0",
7172
"ngx-bootstrap": "^5.1.0",
7273
"ngx-chips": "^2.0.0-beta.0",

src/Frontend/Jp.AdminUI/src/app/core/settings/settings.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export class SettingsService {
3030
name: "Jp Project - IS4Admin",
3131
description: "IdentityServer4 Admin Panel",
3232
year: ((new Date()).getFullYear()),
33-
version: "1.0.0"
33+
version: "1.4.5"
3434
};
3535

3636
// Layout Settings

src/Frontend/Jp.AdminUI/src/app/shared/shared.module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ import { ProgressbarModule } from "ngx-bootstrap/progressbar";
1717
import { RatingModule } from "ngx-bootstrap/rating";
1818
import { TabsModule } from "ngx-bootstrap/tabs";
1919
import { TimepickerModule } from "ngx-bootstrap/timepicker";
20-
import { TooltipModule } from "ngx-bootstrap/tooltip";
2120
import { PopoverModule } from "ngx-bootstrap/popover";
2221
import { TypeaheadModule } from "ngx-bootstrap/typeahead";
2322
import { DatepickerModule } from "ngx-bootstrap/datepicker";
2423
import { BsDatepickerModule } from 'ngx-bootstrap/datepicker';
24+
import {TooltipModule} from 'ng2-tooltip-directive';
2525

2626
import { FlotDirective } from "./directives/flot/flot.directive";
2727
import { SparklineDirective } from "./directives/sparkline/sparkline.directive";
@@ -58,7 +58,7 @@ import { NumberDirective } from "./directives/numberCheck/numbers-only.directive
5858
RatingModule.forRoot(),
5959
TabsModule.forRoot(),
6060
TimepickerModule.forRoot(),
61-
TooltipModule.forRoot(),
61+
TooltipModule,
6262
PopoverModule.forRoot(),
6363
TypeaheadModule.forRoot(),
6464
ToasterModule,

src/Frontend/Jp.UI.SSO/Controllers/Account/AccountController.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,7 @@ private async Task<LoginViewModel> BuildLoginViewModelAsync(string returnUrl)
376376
EnableLocalLogin = local,
377377
ReturnUrl = returnUrl,
378378
Username = context?.LoginHint,
379+
ShowDefaultUserPass = _configuration["ApplicationSettings:ShowDefaultUserPass"] == "true"
379380
};
380381

381382
if (!local)

src/Frontend/Jp.UI.SSO/Models/LoginViewModel.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,6 @@ public class LoginViewModel : LoginInputModel
1919
public bool IsExternalLoginOnly => EnableLocalLogin == false && ExternalProviders?.Count() == 1;
2020
public string ExternalLoginScheme => IsExternalLoginOnly ? ExternalProviders?.SingleOrDefault()?.AuthenticationScheme : null;
2121
public bool EnableExternalProviders { get; set; }
22+
public bool ShowDefaultUserPass { get; set; }
2223
}
2324
}

src/Frontend/Jp.UI.SSO/Util/DbMigrationHelpers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public static async Task EnsureSeedData(IServiceProvider serviceProvider)
4646
var storeDb = scope.ServiceProvider.GetRequiredService<EventStoreContext>();
4747

4848
await WaitForDb(id4Context);
49-
var tst = id4Context.Database.GetPendingMigrations();
49+
await id4Context.Database.GetPendingMigrationsAsync();
5050
await id4Context.Database.MigrateAsync();
5151
await userContext.Database.MigrateAsync();
5252
await storeDb.Database.MigrateAsync();

src/Frontend/Jp.UI.SSO/Views/Account/Login.cshtml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
@using Jp.UI.SSO.Models
2-
@model Jp.UI.SSO.Models.LoginViewModel
1+
@model Jp.UI.SSO.Models.LoginViewModel
32
@using Microsoft.AspNetCore.Mvc.Localization
43
@using Microsoft.Extensions.Configuration
54
@inject IConfiguration Configuration
@@ -26,15 +25,30 @@
2625
<i class="icon-user"></i>
2726
</span>
2827
</div>
29-
<input class="form-control" placeholder="Username" value="@Configuration.GetSection("ApplicationSettings:DefaultUser").Value" asp-for=Username autofocus>
28+
@if (Model.ShowDefaultUserPass)
29+
{
30+
<input class="form-control" placeholder="Username" value="@Configuration.GetSection("ApplicationSettings:DefaultUser").Value" asp-for=Username autofocus>
31+
}
32+
else
33+
{
34+
<input class="form-control" placeholder="Username" asp-for=Username autofocus>
35+
}
3036
</div>
3137
<div class="input-group mb-4">
3238
<div class="input-group-prepend">
3339
<span class="input-group-text">
3440
<i class="icon-lock"></i>
3541
</span>
3642
</div>
37-
<input type="password" class="form-control" placeholder="Password" value="@Configuration.GetSection("ApplicationSettings:DefaultPass").Value" asp-for=Password autocomplete="off">
43+
@if (Model.ShowDefaultUserPass)
44+
{
45+
<input type="password" class="form-control" placeholder="Password" value="@Configuration.GetSection("ApplicationSettings:DefaultPass").Value" asp-for=Password autocomplete="off">
46+
}
47+
else
48+
{
49+
<input type="password" class="form-control" placeholder="Password" asp-for=Password autocomplete="off">
50+
}
51+
3852
</div>
3953
@if (Model.AllowRememberLogin)
4054
{
@@ -117,4 +131,4 @@
117131
</div>
118132
</div>
119133
</div>
120-
</div>
134+
</div>

src/Frontend/Jp.UI.SSO/Views/Shared/_Layout.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
<footer class="app-footer">
108108
<div>
109109
<a href="https://github.com/brunohbrito/JP-Project" target="_blank"><img class="icon" width="15%" src="@Url.Content("~/images/brand/logo.png")"></a>&nbsp;
110-
<span>&copy; 2018.</span>
110+
<span>&copy; 2018. v1.4.5</span>
111111
</div>
112112
<div class="ml-auto">
113113
<span>Powered by</span>

0 commit comments

Comments
 (0)