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.
@@ -518,7 +518,7 @@ const routes = [
518
518
  handler: "oidc.oidcSignIn",
519
519
  config: {
520
520
  auth: false,
521
- middlewares: [rateLimitMiddleware, "strapi::session"]
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, "strapi::session"]
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,
@@ -512,7 +512,7 @@ const routes = [
512
512
  handler: "oidc.oidcSignIn",
513
513
  config: {
514
514
  auth: false,
515
- middlewares: [rateLimitMiddleware, "strapi::session"]
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, "strapi::session"]
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "strapi-plugin-oidc",
3
- "version": "1.0.12",
3
+ "version": "1.0.15",
4
4
  "description": "A Strapi plugin that provides OpenID Connect (OIDC) authentication functionality for the Strapi Admin Panel.",
5
5
  "strapi": {
6
6
  "displayName": "OIDC Plugin",