@celljs/security 3.9.0 → 4.0.0

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.
Files changed (2) hide show
  1. package/cell.yml +13 -7
  2. package/package.json +14 -22
package/cell.yml CHANGED
@@ -5,7 +5,6 @@ cell:
5
5
  openNewWindow: false
6
6
  usernameKey: username
7
7
  passwordKey: password
8
- loginPage: ${ '/login' | onTarget('backend') || '/login?${cell.security.targetUrlParameter}={redirect}'}
9
8
  loginUrl: /login
10
9
  loginMethod: POST
11
10
  loginSuccessUrl: /
@@ -15,12 +14,7 @@ cell:
15
14
  alwaysUseDefaultTargetUrl: false
16
15
  useReferer: false
17
16
  targetUrlParameter: redirect
18
- base64StringKeyLength: ${ 32 | onTarget('backend')}
19
17
  contextKey: cell:securityContext
20
- username: ${ 'admin' | onTarget('backend')}
21
- password: ${ 'MzQ0NTg4ZTk2NzQyYWI1ODA1MDFlNDBjMzZhZDY4OWQ1Zjc5ZDYxYzc2MjQ1NWZk' | onTarget('backend')} # raw password 123456
22
- passwordEncoder:
23
- encodeHashAsBase64: ${ true | onTarget('backend')}
24
18
  basic:
25
19
  enabled: false
26
20
  realm: realm
@@ -33,4 +27,16 @@ cell:
33
27
  email: email
34
28
  login: login
35
29
  nickname: login
36
-
30
+ frontend:
31
+ cell:
32
+ security:
33
+ loginPage: /login?${cell.security.targetUrlParameter}={redirect}
34
+ backend:
35
+ cell:
36
+ security:
37
+ loginPage: /login
38
+ base64StringKeyLength: 32
39
+ username: admin
40
+ password: MzQ0NTg4ZTk2NzQyYWI1ODA1MDFlNDBjMzZhZDY4OWQ1Zjc5ZDYxYzc2MjQ1NWZk # raw password 123456
41
+ passwordEncoder:
42
+ encodeHashAsBase64: true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celljs/security",
3
- "version": "3.9.0",
3
+ "version": "4.0.0",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "cell-component"
@@ -29,9 +29,9 @@
29
29
  "watch": "tsc -b -w --preserveWatchOutput"
30
30
  },
31
31
  "dependencies": {
32
- "@celljs/core": "3.9.0",
33
- "@celljs/http": "3.9.0",
34
- "@celljs/web": "3.9.0",
32
+ "@celljs/core": "4.0.0",
33
+ "@celljs/http": "4.0.0",
34
+ "@celljs/web": "4.0.0",
35
35
  "axios": "^0.26.1",
36
36
  "crypto-js": "^4.0.0",
37
37
  "jexl": "^2.2.0",
@@ -51,96 +51,88 @@
51
51
  },
52
52
  "exports": {
53
53
  ".": {
54
- "webpack": "./lib/common/index.js",
55
54
  "import": "./esm/common/index.js",
56
55
  "default": "./lib/common/index.js"
57
56
  },
58
57
  "./package.json": "./package.json",
59
58
  "./lib/browser": {
60
- "webpack": "./lib/browser/index.js",
61
59
  "import": "./esm/browser/index.js",
62
60
  "default": "./lib/browser/index.js"
63
61
  },
64
62
  "./lib/browser/user": {
65
- "webpack": "./lib/browser/user/index.js",
66
63
  "import": "./esm/browser/user/index.js",
67
64
  "default": "./lib/browser/user/index.js"
68
65
  },
69
66
  "./lib/common": {
70
- "webpack": "./lib/common/index.js",
71
67
  "import": "./esm/common/index.js",
72
68
  "default": "./lib/common/index.js"
73
69
  },
74
70
  "./lib/node": {
75
- "webpack": "./lib/node/index.js",
76
71
  "import": "./esm/node/index.js",
77
72
  "default": "./lib/node/index.js"
78
73
  },
79
74
  "./lib/node/access": {
80
- "webpack": "./lib/node/access/index.js",
81
75
  "import": "./esm/node/access/index.js",
82
76
  "default": "./lib/node/access/index.js"
83
77
  },
84
78
  "./lib/node/annotation": {
85
- "webpack": "./lib/node/annotation/index.js",
86
79
  "import": "./esm/node/annotation/index.js",
87
80
  "default": "./lib/node/annotation/index.js"
88
81
  },
89
82
  "./lib/node/authentication": {
90
- "webpack": "./lib/node/authentication/index.js",
91
83
  "import": "./esm/node/authentication/index.js",
92
84
  "default": "./lib/node/authentication/index.js"
93
85
  },
94
86
  "./lib/node/cache": {
95
- "webpack": "./lib/node/cache/index.js",
96
87
  "import": "./esm/node/cache/index.js",
97
88
  "default": "./lib/node/cache/index.js"
98
89
  },
99
90
  "./lib/node/context": {
100
- "webpack": "./lib/node/context/index.js",
101
91
  "import": "./esm/node/context/index.js",
102
92
  "default": "./lib/node/context/index.js"
103
93
  },
104
94
  "./lib/node/crypto": {
105
- "webpack": "./lib/node/crypto/index.js",
106
95
  "import": "./esm/node/crypto/index.js",
107
96
  "default": "./lib/node/crypto/index.js"
108
97
  },
109
98
  "./lib/node/crypto/keygen": {
110
- "webpack": "./lib/node/crypto/keygen/index.js",
111
99
  "import": "./esm/node/crypto/keygen/index.js",
112
100
  "default": "./lib/node/crypto/keygen/index.js"
113
101
  },
114
102
  "./lib/node/crypto/password": {
115
- "webpack": "./lib/node/crypto/password/index.js",
116
103
  "import": "./esm/node/crypto/password/index.js",
117
104
  "default": "./lib/node/crypto/password/index.js"
118
105
  },
119
106
  "./lib/node/error": {
120
- "webpack": "./lib/node/error/index.js",
121
107
  "import": "./esm/node/error/index.js",
122
108
  "default": "./lib/node/error/index.js"
123
109
  },
124
110
  "./lib/node/logout": {
125
- "webpack": "./lib/node/logout/index.js",
126
111
  "import": "./esm/node/logout/index.js",
127
112
  "default": "./lib/node/logout/index.js"
128
113
  },
129
114
  "./lib/node/user": {
130
- "webpack": "./lib/node/user/index.js",
131
115
  "import": "./esm/node/user/index.js",
132
116
  "default": "./lib/node/user/index.js"
133
117
  },
134
118
  "./lib/*.js": {
135
- "webpack": "./lib/*.js",
136
119
  "import": "./esm/*.js",
137
120
  "default": "./lib/*.js"
138
121
  },
139
122
  "./lib/*": {
140
- "webpack": "./lib/*.js",
141
123
  "import": "./esm/*.js",
142
124
  "default": "./lib/*.js"
143
125
  },
144
126
  "./*": "./*"
127
+ },
128
+ "cell": {
129
+ "modules": {
130
+ "frontend": [
131
+ "lib/browser/module"
132
+ ],
133
+ "backend": [
134
+ "lib/node/module"
135
+ ]
136
+ }
145
137
  }
146
138
  }