strapi-plugin-oidc 1.0.12 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/server/index.js +3 -3
- package/dist/server/index.mjs +3 -3
- package/package.json +1 -1
package/dist/server/index.js
CHANGED
|
@@ -518,7 +518,7 @@ const routes = [
|
|
|
518
518
|
handler: "oidc.oidcSignIn",
|
|
519
519
|
config: {
|
|
520
520
|
auth: false,
|
|
521
|
-
middlewares: [rateLimitMiddleware
|
|
521
|
+
middlewares: [rateLimitMiddleware]
|
|
522
522
|
}
|
|
523
523
|
},
|
|
524
524
|
{
|
|
@@ -527,7 +527,7 @@ const routes = [
|
|
|
527
527
|
handler: "oidc.oidcSignInCallback",
|
|
528
528
|
config: {
|
|
529
529
|
auth: false,
|
|
530
|
-
middlewares: [rateLimitMiddleware
|
|
530
|
+
middlewares: [rateLimitMiddleware]
|
|
531
531
|
}
|
|
532
532
|
},
|
|
533
533
|
{
|
|
@@ -880,7 +880,7 @@ function oauthService({ strapi: strapi2 }) {
|
|
|
880
880
|
const sameSite = strapi2.config.get("admin.auth.cookie.sameSite", "lax");
|
|
881
881
|
const cookieOptions = {
|
|
882
882
|
httpOnly: true,
|
|
883
|
-
secure: isProduction,
|
|
883
|
+
secure: isProduction && ctx.request.secure,
|
|
884
884
|
overwrite: true,
|
|
885
885
|
domain,
|
|
886
886
|
path,
|
package/dist/server/index.mjs
CHANGED
|
@@ -512,7 +512,7 @@ const routes = [
|
|
|
512
512
|
handler: "oidc.oidcSignIn",
|
|
513
513
|
config: {
|
|
514
514
|
auth: false,
|
|
515
|
-
middlewares: [rateLimitMiddleware
|
|
515
|
+
middlewares: [rateLimitMiddleware]
|
|
516
516
|
}
|
|
517
517
|
},
|
|
518
518
|
{
|
|
@@ -521,7 +521,7 @@ const routes = [
|
|
|
521
521
|
handler: "oidc.oidcSignInCallback",
|
|
522
522
|
config: {
|
|
523
523
|
auth: false,
|
|
524
|
-
middlewares: [rateLimitMiddleware
|
|
524
|
+
middlewares: [rateLimitMiddleware]
|
|
525
525
|
}
|
|
526
526
|
},
|
|
527
527
|
{
|
|
@@ -874,7 +874,7 @@ function oauthService({ strapi: strapi2 }) {
|
|
|
874
874
|
const sameSite = strapi2.config.get("admin.auth.cookie.sameSite", "lax");
|
|
875
875
|
const cookieOptions = {
|
|
876
876
|
httpOnly: true,
|
|
877
|
-
secure: isProduction,
|
|
877
|
+
secure: isProduction && ctx.request.secure,
|
|
878
878
|
overwrite: true,
|
|
879
879
|
domain,
|
|
880
880
|
path,
|
package/package.json
CHANGED