strapi-plugin-oidc 1.9.5 → 1.9.7

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.
@@ -234,7 +234,7 @@ async function applyDiscovery(strapi2) {
234
234
  );
235
235
  return;
236
236
  }
237
- const updates = { OIDC_ISSUER: canonicalIssuer };
237
+ const updates = { OIDC_ISSUER: doc.issuer ?? canonicalIssuer };
238
238
  for (const [docField, configKey] of FIELD_MAP) {
239
239
  if (doc[docField]) {
240
240
  updates[configKey] = doc[docField];
@@ -4552,19 +4552,19 @@ const routes = {
4552
4552
  method: "GET",
4553
4553
  path: "/audit-logs",
4554
4554
  handler: "auditLog.find",
4555
- config: { policies: ["admin::isAuthenticatedAdmin"] }
4555
+ config: adminPolicies("read")
4556
4556
  },
4557
4557
  {
4558
4558
  method: "GET",
4559
4559
  path: "/audit-logs/export",
4560
4560
  handler: "auditLog.export",
4561
- config: { policies: ["admin::isAuthenticatedAdmin"] }
4561
+ config: adminPolicies("read")
4562
4562
  },
4563
4563
  {
4564
4564
  method: "DELETE",
4565
4565
  path: "/audit-logs",
4566
4566
  handler: "auditLog.clearAll",
4567
- config: { policies: ["admin::isAuthenticatedAdmin"] }
4567
+ config: adminPolicies("update")
4568
4568
  }
4569
4569
  ]
4570
4570
  },
@@ -228,7 +228,7 @@ async function applyDiscovery(strapi2) {
228
228
  );
229
229
  return;
230
230
  }
231
- const updates = { OIDC_ISSUER: canonicalIssuer };
231
+ const updates = { OIDC_ISSUER: doc.issuer ?? canonicalIssuer };
232
232
  for (const [docField, configKey] of FIELD_MAP) {
233
233
  if (doc[docField]) {
234
234
  updates[configKey] = doc[docField];
@@ -4546,19 +4546,19 @@ const routes = {
4546
4546
  method: "GET",
4547
4547
  path: "/audit-logs",
4548
4548
  handler: "auditLog.find",
4549
- config: { policies: ["admin::isAuthenticatedAdmin"] }
4549
+ config: adminPolicies("read")
4550
4550
  },
4551
4551
  {
4552
4552
  method: "GET",
4553
4553
  path: "/audit-logs/export",
4554
4554
  handler: "auditLog.export",
4555
- config: { policies: ["admin::isAuthenticatedAdmin"] }
4555
+ config: adminPolicies("read")
4556
4556
  },
4557
4557
  {
4558
4558
  method: "DELETE",
4559
4559
  path: "/audit-logs",
4560
4560
  handler: "auditLog.clearAll",
4561
- config: { policies: ["admin::isAuthenticatedAdmin"] }
4561
+ config: adminPolicies("update")
4562
4562
  }
4563
4563
  ]
4564
4564
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "strapi-plugin-oidc",
3
- "version": "1.9.5",
3
+ "version": "1.9.7",
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",