@punch-in/strapi-admin 1.2.0 → 1.2.1

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.
@@ -1,46 +1,20 @@
1
1
  'use strict';
2
2
 
3
- module.exports = {
4
- sso: [
5
- {
6
- method: 'GET',
7
- path: '/providers',
8
- handler: 'authentication.getProviders',
9
- },
10
- {
11
- method: 'GET',
12
- path: '/connect/:provider',
13
- handler: 'authentication.providerLogin',
14
- },
15
- {
16
- method: 'POST',
17
- path: '/connect/:provider',
18
- handler: 'authentication.providerLogin',
19
- },
20
- {
21
- method: 'GET',
22
- path: '/providers/options',
23
- handler: 'authentication.getProviderLoginOptions',
24
- config: {
25
- policies: [
26
- 'admin::isAuthenticatedAdmin',
27
- ['admin::hasPermissions', ['admin::provider-login.read']],
28
- ],
29
- },
30
- },
31
- {
32
- method: 'PUT',
33
- path: '/providers/options',
34
- handler: 'authentication.updateProviderLoginOptions',
35
- config: {
36
- policies: [
37
- 'admin::isAuthenticatedAdmin',
38
- ['admin::hasPermissions', ['admin::provider-login.update']],
39
- ],
40
- },
41
- },
42
- ],
43
- };
3
+ // Upstream Strapi CE quirk (see ./index.js): in a non-EE build this
4
+ // middleware pushes every entry here onto strapi.admin.config.routes
5
+ // UNCONDITIONALLY, with no license/feature check at all - "sso" is really
6
+ // an Enterprise-only feature bundle, and its handlers (authentication.
7
+ // getProviders/providerLogin/getProviderLoginOptions/updateProviderLogin
8
+ // Options) only exist in ee/controllers/authentication.js, which never
9
+ // loads without a valid license. Registering these against the CE
10
+ // controller throws "handler not found" and crashes the whole app at
11
+ // boot - it happened to go unnoticed here only because the old (now
12
+ // removed) mock scaffold coincidentally had a same-named getProviders.
13
+ //
14
+ // Real admin SSO now lives in config/routes.json (authentication.
15
+ // ssoProviders/ssoConnect/ssoVerify) instead - this file is deliberately
16
+ // left empty so nothing conflicts with or shadows those.
17
+ module.exports = {};
44
18
 
45
19
 
46
20
 
package/package.json CHANGED
@@ -139,5 +139,5 @@
139
139
  "develop:ce": "STRAPI_DISABLE_EE=true webpack-dev-server --config webpack.config.dev.js",
140
140
  "test": "echo \"no tests yet\""
141
141
  },
142
- "version": "1.2.0"
142
+ "version": "1.2.1"
143
143
  }