@punch-in/strapi-admin 1.2.10 → 1.2.11
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.
|
@@ -239,14 +239,6 @@ module.exports = {
|
|
|
239
239
|
// time compare). Read-only: an unmatched or inactive email is rejected,
|
|
240
240
|
// never used to create or activate an admin account.
|
|
241
241
|
async ssoVerify(ctx) {
|
|
242
|
-
// TEMPORARY diagnostic - ssoVerify is returning a bare 403 "Forbidden"
|
|
243
|
-
// (matching isAuthenticatedAdmin's unmessaged strapi.errors.forbidden())
|
|
244
|
-
// in production on every tenant tested, even with a correct X-Sync-Secret,
|
|
245
|
-
// despite this route's routes.json entry having no policies that could
|
|
246
|
-
// produce that. This line proves whether the request even reaches this
|
|
247
|
-
// controller at all - remove once root-caused.
|
|
248
|
-
console.log('[ssoVerify] reached controller, headers:', JSON.stringify(ctx.request.header));
|
|
249
|
-
|
|
250
242
|
const expected = process.env.SYNC_SECRET;
|
|
251
243
|
if (!expected) {
|
|
252
244
|
return ctx.internalServerError('SYNC_SECRET is not configured on this Strapi instance');
|
package/package.json
CHANGED