Skip to content

Commit 6b6a3c5

Browse files
Prepare the release 6.0.3
1 parent 685543c commit 6b6a3c5

File tree

159 files changed

+7512
-21
lines changed

Some content is hidden

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

159 files changed

+7512
-21
lines changed

docker-compose.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ services:
2828
networks:
2929
proxy_net: null
3030
scim:
31-
image: simpleidserver/scim:6.0.2
31+
image: simpleidserver/scim:6.0.3
3232
environment:
3333
VIRTUAL_HOST: "scim.localhost.com"
3434
ASPNETCORE_URLS : "http://*:80"
@@ -40,7 +40,7 @@ services:
4040
networks:
4141
proxy_net: null
4242
idserver:
43-
image: simpleidserver/idserver:6.0.2
43+
image: simpleidserver/idserver:6.0.3
4444
environment:
4545
VIRTUAL_HOST: "idserver.localhost.com"
4646
ASPNETCORE_URLS : "http://*:80"
@@ -59,7 +59,7 @@ services:
5959
networks:
6060
proxy_net: null
6161
website:
62-
image: simpleidserver/website:6.0.2
62+
image: simpleidserver/website:6.0.3
6363
environment:
6464
VIRTUAL_HOST: "website.localhost.com"
6565
ASPNETCORE_URLS : "http://*:80"
@@ -74,7 +74,7 @@ services:
7474
networks:
7575
proxy_net: null
7676
credentialissuer:
77-
image: simpleidserver/credentialissuer:6.0.2
77+
image: simpleidserver/credentialissuer:6.0.3
7878
environment:
7979
VIRTUAL_HOST: "credentialissuer.localhost.com"
8080
ASPNETCORE_URLS : "http://*:80"
@@ -86,7 +86,7 @@ services:
8686
networks:
8787
proxy_net: null
8888
credentialissuerwebsite:
89-
image: simpleidserver/credentialissuerwebsite:6.0.2
89+
image: simpleidserver/credentialissuerwebsite:6.0.3
9090
environment:
9191
VIRTUAL_HOST: "credentialissuerwebsite.localhost.com"
9292
ASPNETCORE_URLS : "http://*:80"

sid-kubernetes.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ spec:
229229
subdomain: localhost
230230
containers:
231231
- name: scim-deploy
232-
image: simpleidserver/scim:6.0.2
232+
image: simpleidserver/scim:6.0.3
233233
ports:
234234
- containerPort: 80
235235
env:
@@ -266,7 +266,7 @@ spec:
266266
subdomain: localhost
267267
containers:
268268
- name: idserver-deploy
269-
image: simpleidserver/idserver:6.0.2
269+
image: simpleidserver/idserver:6.0.3
270270
ports:
271271
- containerPort: 80
272272
env:
@@ -311,7 +311,7 @@ spec:
311311
subdomain: localhost
312312
containers:
313313
- name: website-deploy
314-
image: simpleidserver/website:6.0.2
314+
image: simpleidserver/website:6.0.3
315315
ports:
316316
- containerPort: 80
317317
env:
@@ -352,7 +352,7 @@ spec:
352352
subdomain: localhost
353353
containers:
354354
- name: credentialissuer-deploy
355-
image: simpleidserver/credentialissuer:6.0.2
355+
image: simpleidserver/credentialissuer:6.0.3
356356
ports:
357357
- containerPort: 80
358358
env:
@@ -387,7 +387,7 @@ spec:
387387
subdomain: localhost
388388
containers:
389389
- name: credentialissuerwebsite-deploy
390-
image: simpleidserver/credentialissuerwebsite:6.0.2
390+
image: simpleidserver/credentialissuerwebsite:6.0.3
391391
ports:
392392
- containerPort: 80
393393
env:

src/Templates/templates/SimpleIdServer.IdServer.Startup/Areas/mobile/Views/Authenticate/Index.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
var loginStatusUrl = "@loginStatusUrl";
5656
5757
var displayError = function (errorJson) {
58-
csharpReference.invokeMethodAsync("SetErrorMessage", errorJson["error_description"]);
58+
csharpReference.invokeMethodAsync("SetErrorMessage", errorJson["error"]);
5959
}
6060
6161
var displayQRCode = function (img) {

src/Templates/templates/SimpleIdServer.IdServer.Startup/Areas/mobile/Views/Register/Index.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
var isInitialized = false;
5555
5656
var displayError = function(errorJson) {
57-
csharpReference.invokeMethodAsync("SetErrorMessage", errorJson["error_description"]);
57+
csharpReference.invokeMethodAsync("SetErrorMessage", errorJson["error"]);
5858
}
5959
6060
var displaySuccessMessage = function () {

src/Templates/templates/SimpleIdServer.IdServer.Startup/Areas/vp/Views/Register/Index.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
var isCreated = "@isCreated";
5858
5959
var displayError = function (errorJson) {
60-
csharpReference.invokeMethodAsync("SetErrorMessage", errorJson["error_description"]);
60+
csharpReference.invokeMethodAsync("SetErrorMessage", errorJson["error"]);
6161
}
6262
6363
var viewQrCode = function (img) {

src/Templates/templates/SimpleIdServer.IdServer.Startup/Areas/webauthn/Views/Authenticate/Index.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
}
6161
6262
var displayError = function (errorJson) {
63-
csharpReference.invokeMethodAsync("SetErrorMessage", errorJson["error_description"]);
63+
csharpReference.invokeMethodAsync("SetErrorMessage", errorJson["error"]);
6464
}
6565
6666
var tryListenForm = function () {

src/Templates/templates/SimpleIdServer.IdServer.Startup/Areas/webauthn/Views/Register/Index.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
var isInitialized = false;
5858
5959
var displayError = function (errorJson) {
60-
csharpReference.invokeMethodAsync("SetErrorMessage", errorJson["error_description"]);
60+
csharpReference.invokeMethodAsync("SetErrorMessage", errorJson["error"]);
6161
}
6262
6363
var displaySuccessMessage = function () {

src/Templates/templates/SimpleIdServer.IdServer.Startup/Conf/SidServerSetup.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
using OpenTelemetry.Trace;
2020
using SimpleIdServer.Configuration;
2121
using SimpleIdServer.Configuration.Redis;
22+
using SimpleIdServer.IdServer.Captcha;
2223
using SimpleIdServer.IdServer.Domains;
2324
using SimpleIdServer.IdServer.Options;
2425
using SimpleIdServer.IdServer.Startup.Conf.Migrations.AfterDeployment;
@@ -90,6 +91,10 @@ public static void ConfigureIdServer(WebApplicationBuilder webApplicationBuilder
9091
.AddLdapProvisioning()
9192
.AddFcmNotification()
9293
.AddGotifyNotification()
94+
.EnableV2Recaptcha(c =>
95+
{
96+
ConfigureV2ReCaptcha(webApplicationBuilder, c);
97+
})
9398
.AddSwagger(opt =>
9499
{
95100
opt.IncludeDocumentation<AccessTokenTypeService>();
@@ -444,6 +449,13 @@ private static void ConfigureMessageBroker(WebApplicationBuilder builder, IBusRe
444449
}
445450
}
446451

452+
private static void ConfigureV2ReCaptcha(WebApplicationBuilder builder, V2ReCaptchaOptions options)
453+
{
454+
var section = builder.Configuration.GetSection(nameof(V2ReCaptchaOptions));
455+
var conf = section.Get<V2ReCaptchaOptions>();
456+
options.Secret = conf.Secret;
457+
}
458+
447459
private static void ConfigureMessageBrokerMigration(WebApplicationBuilder builder)
448460
{
449461
var section = builder.Configuration.GetSection(nameof(MessageBrokerOptions));

src/Templates/templates/SimpleIdServer.IdServer.Startup/Views/Shared/_FormBuilderLayout.cshtml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
<script type="text/javascript" src="@Url.Content("~/lib/bootstrap/js/bootstrap.js")"></script>
7373
<script src="_content/Radzen.Blazor/Radzen.Blazor.js"></script>
7474
<script src="_content/SidFormBuilder/lib.js"></script>
75+
<script src="_content/SidFormBuilder/reCaptcha.js"></script>
7576
<script src="_content/BlazorMonaco/jsInterop.js"></script>
7677
<script src="_content/BlazorMonaco/lib/monaco-editor/min/vs/loader.js"></script>
7778
<script src="_content/BlazorMonaco/lib/monaco-editor/min/vs/editor/editor.main.js"></script>

src/Templates/templates/SimpleIdServer.IdServer.Startup/appsettings.Docker.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,7 @@
9999
"NotificationMode": "email",
100100
"ResetPasswordTitle": "Reset your password",
101101
"ResetPasswordBody": "Link to reset your password {0}",
102-
"ResetPasswordLinkExpirationInSeconds": "30",
103-
"CanResetPassword": "true"
102+
"ResetPasswordLinkExpirationInSeconds": "30"
104103
},
105104
"MobileOptions": {
106105
"U2FExpirationTimeInSeconds": "300"
@@ -128,5 +127,8 @@
128127
"UserLockingOptions": {
129128
"LockTimeInSeconds": "300",
130129
"MaxLoginAttempts": "5"
130+
},
131+
"V2ReCaptchaOptions": {
132+
"Secret": "6LcbEGQrAAAAAKEdeYsB5WXOTfHmT5d-xiAWnfSG"
131133
}
132134
}

0 commit comments

Comments
 (0)