rodauth-tools 0.3.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.
- checksums.yaml +7 -0
- data/.gitignore +93 -0
- data/.gitlint +9 -0
- data/.markdownlint-cli2.jsonc +26 -0
- data/.pre-commit-config.yaml +46 -0
- data/.rubocop.yml +18 -0
- data/.rubocop_todo.yml +243 -0
- data/CHANGELOG.md +81 -0
- data/CLAUDE.md +262 -0
- data/CODE_OF_CONDUCT.md +132 -0
- data/CONTRIBUTING.md +111 -0
- data/Gemfile +35 -0
- data/Gemfile.lock +356 -0
- data/LICENSE.txt +21 -0
- data/README.md +339 -0
- data/Rakefile +8 -0
- data/lib/rodauth/features/external_identity.rb +946 -0
- data/lib/rodauth/features/hmac_secret_guard.rb +119 -0
- data/lib/rodauth/features/jwt_secret_guard.rb +120 -0
- data/lib/rodauth/features/table_guard.rb +937 -0
- data/lib/rodauth/sequel_generator.rb +531 -0
- data/lib/rodauth/table_inspector.rb +124 -0
- data/lib/rodauth/template_inspector.rb +134 -0
- data/lib/rodauth/tools/console_helpers.rb +158 -0
- data/lib/rodauth/tools/migration/sequel/account_expiration.erb +9 -0
- data/lib/rodauth/tools/migration/sequel/active_sessions.erb +10 -0
- data/lib/rodauth/tools/migration/sequel/audit_logging.erb +12 -0
- data/lib/rodauth/tools/migration/sequel/base.erb +41 -0
- data/lib/rodauth/tools/migration/sequel/disallow_password_reuse.erb +8 -0
- data/lib/rodauth/tools/migration/sequel/email_auth.erb +17 -0
- data/lib/rodauth/tools/migration/sequel/jwt_refresh.erb +18 -0
- data/lib/rodauth/tools/migration/sequel/lockout.erb +21 -0
- data/lib/rodauth/tools/migration/sequel/otp.erb +9 -0
- data/lib/rodauth/tools/migration/sequel/otp_unlock.erb +8 -0
- data/lib/rodauth/tools/migration/sequel/password_expiration.erb +7 -0
- data/lib/rodauth/tools/migration/sequel/recovery_codes.erb +8 -0
- data/lib/rodauth/tools/migration/sequel/remember.erb +16 -0
- data/lib/rodauth/tools/migration/sequel/reset_password.erb +17 -0
- data/lib/rodauth/tools/migration/sequel/single_session.erb +7 -0
- data/lib/rodauth/tools/migration/sequel/sms_codes.erb +10 -0
- data/lib/rodauth/tools/migration/sequel/verify_account.erb +9 -0
- data/lib/rodauth/tools/migration/sequel/verify_login_change.erb +17 -0
- data/lib/rodauth/tools/migration/sequel/webauthn.erb +15 -0
- data/lib/rodauth/tools/migration.rb +188 -0
- data/lib/rodauth/tools/version.rb +9 -0
- data/lib/rodauth/tools.rb +29 -0
- data/package-lock.json +500 -0
- data/package.json +11 -0
- data/rodauth-tools.gemspec +40 -0
- metadata +136 -0
data/package-lock.json
ADDED
|
@@ -0,0 +1,500 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "rodauth-tools",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"lockfileVersion": 3,
|
|
5
|
+
"requires": true,
|
|
6
|
+
"packages": {
|
|
7
|
+
"": {
|
|
8
|
+
"name": "rodauth-tools",
|
|
9
|
+
"version": "1.0.0",
|
|
10
|
+
"devDependencies": {
|
|
11
|
+
"markdownlint-cli2": "^0.15.0"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"node_modules/@nodelib/fs.scandir": {
|
|
15
|
+
"version": "2.1.5",
|
|
16
|
+
"resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",
|
|
17
|
+
"integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==",
|
|
18
|
+
"dev": true,
|
|
19
|
+
"license": "MIT",
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"@nodelib/fs.stat": "2.0.5",
|
|
22
|
+
"run-parallel": "^1.1.9"
|
|
23
|
+
},
|
|
24
|
+
"engines": {
|
|
25
|
+
"node": ">= 8"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"node_modules/@nodelib/fs.stat": {
|
|
29
|
+
"version": "2.0.5",
|
|
30
|
+
"resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz",
|
|
31
|
+
"integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==",
|
|
32
|
+
"dev": true,
|
|
33
|
+
"license": "MIT",
|
|
34
|
+
"engines": {
|
|
35
|
+
"node": ">= 8"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"node_modules/@nodelib/fs.walk": {
|
|
39
|
+
"version": "1.2.8",
|
|
40
|
+
"resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz",
|
|
41
|
+
"integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==",
|
|
42
|
+
"dev": true,
|
|
43
|
+
"license": "MIT",
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"@nodelib/fs.scandir": "2.1.5",
|
|
46
|
+
"fastq": "^1.6.0"
|
|
47
|
+
},
|
|
48
|
+
"engines": {
|
|
49
|
+
"node": ">= 8"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"node_modules/@sindresorhus/merge-streams": {
|
|
53
|
+
"version": "2.3.0",
|
|
54
|
+
"resolved": "https://registry.npmjs.org/@sindresorhus/merge-streams/-/merge-streams-2.3.0.tgz",
|
|
55
|
+
"integrity": "sha512-LtoMMhxAlorcGhmFYI+LhPgbPZCkgP6ra1YL604EeF6U98pLlQ3iWIGMdWSC+vWmPBWBNgmDBAhnAobLROJmwg==",
|
|
56
|
+
"dev": true,
|
|
57
|
+
"license": "MIT",
|
|
58
|
+
"engines": {
|
|
59
|
+
"node": ">=18"
|
|
60
|
+
},
|
|
61
|
+
"funding": {
|
|
62
|
+
"url": "https://github.com/sponsors/sindresorhus"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"node_modules/argparse": {
|
|
66
|
+
"version": "2.0.1",
|
|
67
|
+
"resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
|
|
68
|
+
"integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
|
|
69
|
+
"dev": true,
|
|
70
|
+
"license": "Python-2.0"
|
|
71
|
+
},
|
|
72
|
+
"node_modules/braces": {
|
|
73
|
+
"version": "3.0.3",
|
|
74
|
+
"resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz",
|
|
75
|
+
"integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==",
|
|
76
|
+
"dev": true,
|
|
77
|
+
"license": "MIT",
|
|
78
|
+
"dependencies": {
|
|
79
|
+
"fill-range": "^7.1.1"
|
|
80
|
+
},
|
|
81
|
+
"engines": {
|
|
82
|
+
"node": ">=8"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"node_modules/entities": {
|
|
86
|
+
"version": "4.5.0",
|
|
87
|
+
"resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz",
|
|
88
|
+
"integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==",
|
|
89
|
+
"dev": true,
|
|
90
|
+
"license": "BSD-2-Clause",
|
|
91
|
+
"engines": {
|
|
92
|
+
"node": ">=0.12"
|
|
93
|
+
},
|
|
94
|
+
"funding": {
|
|
95
|
+
"url": "https://github.com/fb55/entities?sponsor=1"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"node_modules/fast-glob": {
|
|
99
|
+
"version": "3.3.3",
|
|
100
|
+
"resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz",
|
|
101
|
+
"integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==",
|
|
102
|
+
"dev": true,
|
|
103
|
+
"license": "MIT",
|
|
104
|
+
"dependencies": {
|
|
105
|
+
"@nodelib/fs.stat": "^2.0.2",
|
|
106
|
+
"@nodelib/fs.walk": "^1.2.3",
|
|
107
|
+
"glob-parent": "^5.1.2",
|
|
108
|
+
"merge2": "^1.3.0",
|
|
109
|
+
"micromatch": "^4.0.8"
|
|
110
|
+
},
|
|
111
|
+
"engines": {
|
|
112
|
+
"node": ">=8.6.0"
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
"node_modules/fastq": {
|
|
116
|
+
"version": "1.19.1",
|
|
117
|
+
"resolved": "https://registry.npmjs.org/fastq/-/fastq-1.19.1.tgz",
|
|
118
|
+
"integrity": "sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==",
|
|
119
|
+
"dev": true,
|
|
120
|
+
"license": "ISC",
|
|
121
|
+
"dependencies": {
|
|
122
|
+
"reusify": "^1.0.4"
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"node_modules/fill-range": {
|
|
126
|
+
"version": "7.1.1",
|
|
127
|
+
"resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz",
|
|
128
|
+
"integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==",
|
|
129
|
+
"dev": true,
|
|
130
|
+
"license": "MIT",
|
|
131
|
+
"dependencies": {
|
|
132
|
+
"to-regex-range": "^5.0.1"
|
|
133
|
+
},
|
|
134
|
+
"engines": {
|
|
135
|
+
"node": ">=8"
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
"node_modules/glob-parent": {
|
|
139
|
+
"version": "5.1.2",
|
|
140
|
+
"resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
|
|
141
|
+
"integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
|
|
142
|
+
"dev": true,
|
|
143
|
+
"license": "ISC",
|
|
144
|
+
"dependencies": {
|
|
145
|
+
"is-glob": "^4.0.1"
|
|
146
|
+
},
|
|
147
|
+
"engines": {
|
|
148
|
+
"node": ">= 6"
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"node_modules/globby": {
|
|
152
|
+
"version": "14.0.2",
|
|
153
|
+
"resolved": "https://registry.npmjs.org/globby/-/globby-14.0.2.tgz",
|
|
154
|
+
"integrity": "sha512-s3Fq41ZVh7vbbe2PN3nrW7yC7U7MFVc5c98/iTl9c2GawNMKx/J648KQRW6WKkuU8GIbbh2IXfIRQjOZnXcTnw==",
|
|
155
|
+
"dev": true,
|
|
156
|
+
"license": "MIT",
|
|
157
|
+
"dependencies": {
|
|
158
|
+
"@sindresorhus/merge-streams": "^2.1.0",
|
|
159
|
+
"fast-glob": "^3.3.2",
|
|
160
|
+
"ignore": "^5.2.4",
|
|
161
|
+
"path-type": "^5.0.0",
|
|
162
|
+
"slash": "^5.1.0",
|
|
163
|
+
"unicorn-magic": "^0.1.0"
|
|
164
|
+
},
|
|
165
|
+
"engines": {
|
|
166
|
+
"node": ">=18"
|
|
167
|
+
},
|
|
168
|
+
"funding": {
|
|
169
|
+
"url": "https://github.com/sponsors/sindresorhus"
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"node_modules/ignore": {
|
|
173
|
+
"version": "5.3.2",
|
|
174
|
+
"resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz",
|
|
175
|
+
"integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==",
|
|
176
|
+
"dev": true,
|
|
177
|
+
"license": "MIT",
|
|
178
|
+
"engines": {
|
|
179
|
+
"node": ">= 4"
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
"node_modules/is-extglob": {
|
|
183
|
+
"version": "2.1.1",
|
|
184
|
+
"resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
|
|
185
|
+
"integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
|
|
186
|
+
"dev": true,
|
|
187
|
+
"license": "MIT",
|
|
188
|
+
"engines": {
|
|
189
|
+
"node": ">=0.10.0"
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
"node_modules/is-glob": {
|
|
193
|
+
"version": "4.0.3",
|
|
194
|
+
"resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
|
|
195
|
+
"integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
|
|
196
|
+
"dev": true,
|
|
197
|
+
"license": "MIT",
|
|
198
|
+
"dependencies": {
|
|
199
|
+
"is-extglob": "^2.1.1"
|
|
200
|
+
},
|
|
201
|
+
"engines": {
|
|
202
|
+
"node": ">=0.10.0"
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
"node_modules/is-number": {
|
|
206
|
+
"version": "7.0.0",
|
|
207
|
+
"resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
|
|
208
|
+
"integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
|
|
209
|
+
"dev": true,
|
|
210
|
+
"license": "MIT",
|
|
211
|
+
"engines": {
|
|
212
|
+
"node": ">=0.12.0"
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
"node_modules/js-yaml": {
|
|
216
|
+
"version": "4.1.0",
|
|
217
|
+
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",
|
|
218
|
+
"integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==",
|
|
219
|
+
"dev": true,
|
|
220
|
+
"license": "MIT",
|
|
221
|
+
"dependencies": {
|
|
222
|
+
"argparse": "^2.0.1"
|
|
223
|
+
},
|
|
224
|
+
"bin": {
|
|
225
|
+
"js-yaml": "bin/js-yaml.js"
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
"node_modules/jsonc-parser": {
|
|
229
|
+
"version": "3.3.1",
|
|
230
|
+
"resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.3.1.tgz",
|
|
231
|
+
"integrity": "sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ==",
|
|
232
|
+
"dev": true,
|
|
233
|
+
"license": "MIT"
|
|
234
|
+
},
|
|
235
|
+
"node_modules/linkify-it": {
|
|
236
|
+
"version": "5.0.0",
|
|
237
|
+
"resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-5.0.0.tgz",
|
|
238
|
+
"integrity": "sha512-5aHCbzQRADcdP+ATqnDuhhJ/MRIqDkZX5pyjFHRRysS8vZ5AbqGEoFIb6pYHPZ+L/OC2Lc+xT8uHVVR5CAK/wQ==",
|
|
239
|
+
"dev": true,
|
|
240
|
+
"license": "MIT",
|
|
241
|
+
"dependencies": {
|
|
242
|
+
"uc.micro": "^2.0.0"
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
"node_modules/markdown-it": {
|
|
246
|
+
"version": "14.1.0",
|
|
247
|
+
"resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-14.1.0.tgz",
|
|
248
|
+
"integrity": "sha512-a54IwgWPaeBCAAsv13YgmALOF1elABB08FxO9i+r4VFk5Vl4pKokRPeX8u5TCgSsPi6ec1otfLjdOpVcgbpshg==",
|
|
249
|
+
"dev": true,
|
|
250
|
+
"license": "MIT",
|
|
251
|
+
"dependencies": {
|
|
252
|
+
"argparse": "^2.0.1",
|
|
253
|
+
"entities": "^4.4.0",
|
|
254
|
+
"linkify-it": "^5.0.0",
|
|
255
|
+
"mdurl": "^2.0.0",
|
|
256
|
+
"punycode.js": "^2.3.1",
|
|
257
|
+
"uc.micro": "^2.1.0"
|
|
258
|
+
},
|
|
259
|
+
"bin": {
|
|
260
|
+
"markdown-it": "bin/markdown-it.mjs"
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
"node_modules/markdownlint": {
|
|
264
|
+
"version": "0.36.1",
|
|
265
|
+
"resolved": "https://registry.npmjs.org/markdownlint/-/markdownlint-0.36.1.tgz",
|
|
266
|
+
"integrity": "sha512-s73fU2CQN7WCgjhaQUQ8wYESQNzGRNOKDd+3xgVqu8kuTEhmwepd/mxOv1LR2oV046ONrTLBFsM7IoKWNvmy5g==",
|
|
267
|
+
"dev": true,
|
|
268
|
+
"license": "MIT",
|
|
269
|
+
"dependencies": {
|
|
270
|
+
"markdown-it": "14.1.0",
|
|
271
|
+
"markdownlint-micromark": "0.1.12"
|
|
272
|
+
},
|
|
273
|
+
"engines": {
|
|
274
|
+
"node": ">=18"
|
|
275
|
+
},
|
|
276
|
+
"funding": {
|
|
277
|
+
"url": "https://github.com/sponsors/DavidAnson"
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
"node_modules/markdownlint-cli2": {
|
|
281
|
+
"version": "0.15.0",
|
|
282
|
+
"resolved": "https://registry.npmjs.org/markdownlint-cli2/-/markdownlint-cli2-0.15.0.tgz",
|
|
283
|
+
"integrity": "sha512-4P/lnxQxU2R5lywRJs4b2ajm8z65CW8qqR1bTIcdQ5EG+nZpC6HJlJUnmIR5ee+uecUkoMroazxWcLB7etSmrg==",
|
|
284
|
+
"dev": true,
|
|
285
|
+
"license": "MIT",
|
|
286
|
+
"dependencies": {
|
|
287
|
+
"globby": "14.0.2",
|
|
288
|
+
"js-yaml": "4.1.0",
|
|
289
|
+
"jsonc-parser": "3.3.1",
|
|
290
|
+
"markdownlint": "0.36.1",
|
|
291
|
+
"markdownlint-cli2-formatter-default": "0.0.5",
|
|
292
|
+
"micromatch": "4.0.8"
|
|
293
|
+
},
|
|
294
|
+
"bin": {
|
|
295
|
+
"markdownlint-cli2": "markdownlint-cli2.js"
|
|
296
|
+
},
|
|
297
|
+
"engines": {
|
|
298
|
+
"node": ">=18"
|
|
299
|
+
},
|
|
300
|
+
"funding": {
|
|
301
|
+
"url": "https://github.com/sponsors/DavidAnson"
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
"node_modules/markdownlint-cli2-formatter-default": {
|
|
305
|
+
"version": "0.0.5",
|
|
306
|
+
"resolved": "https://registry.npmjs.org/markdownlint-cli2-formatter-default/-/markdownlint-cli2-formatter-default-0.0.5.tgz",
|
|
307
|
+
"integrity": "sha512-4XKTwQ5m1+Txo2kuQ3Jgpo/KmnG+X90dWt4acufg6HVGadTUG5hzHF/wssp9b5MBYOMCnZ9RMPaU//uHsszF8Q==",
|
|
308
|
+
"dev": true,
|
|
309
|
+
"license": "MIT",
|
|
310
|
+
"funding": {
|
|
311
|
+
"url": "https://github.com/sponsors/DavidAnson"
|
|
312
|
+
},
|
|
313
|
+
"peerDependencies": {
|
|
314
|
+
"markdownlint-cli2": ">=0.0.4"
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
"node_modules/markdownlint-micromark": {
|
|
318
|
+
"version": "0.1.12",
|
|
319
|
+
"resolved": "https://registry.npmjs.org/markdownlint-micromark/-/markdownlint-micromark-0.1.12.tgz",
|
|
320
|
+
"integrity": "sha512-RlB6EwMGgc0sxcIhOQ2+aq7Zw1V2fBnzbXKGgYK/mVWdT7cz34fteKSwfYeo4rL6+L/q2tyC9QtD/PgZbkdyJQ==",
|
|
321
|
+
"dev": true,
|
|
322
|
+
"license": "MIT",
|
|
323
|
+
"engines": {
|
|
324
|
+
"node": ">=18"
|
|
325
|
+
},
|
|
326
|
+
"funding": {
|
|
327
|
+
"url": "https://github.com/sponsors/DavidAnson"
|
|
328
|
+
}
|
|
329
|
+
},
|
|
330
|
+
"node_modules/mdurl": {
|
|
331
|
+
"version": "2.0.0",
|
|
332
|
+
"resolved": "https://registry.npmjs.org/mdurl/-/mdurl-2.0.0.tgz",
|
|
333
|
+
"integrity": "sha512-Lf+9+2r+Tdp5wXDXC4PcIBjTDtq4UKjCPMQhKIuzpJNW0b96kVqSwW0bT7FhRSfmAiFYgP+SCRvdrDozfh0U5w==",
|
|
334
|
+
"dev": true,
|
|
335
|
+
"license": "MIT"
|
|
336
|
+
},
|
|
337
|
+
"node_modules/merge2": {
|
|
338
|
+
"version": "1.4.1",
|
|
339
|
+
"resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz",
|
|
340
|
+
"integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==",
|
|
341
|
+
"dev": true,
|
|
342
|
+
"license": "MIT",
|
|
343
|
+
"engines": {
|
|
344
|
+
"node": ">= 8"
|
|
345
|
+
}
|
|
346
|
+
},
|
|
347
|
+
"node_modules/micromatch": {
|
|
348
|
+
"version": "4.0.8",
|
|
349
|
+
"resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz",
|
|
350
|
+
"integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==",
|
|
351
|
+
"dev": true,
|
|
352
|
+
"license": "MIT",
|
|
353
|
+
"dependencies": {
|
|
354
|
+
"braces": "^3.0.3",
|
|
355
|
+
"picomatch": "^2.3.1"
|
|
356
|
+
},
|
|
357
|
+
"engines": {
|
|
358
|
+
"node": ">=8.6"
|
|
359
|
+
}
|
|
360
|
+
},
|
|
361
|
+
"node_modules/path-type": {
|
|
362
|
+
"version": "5.0.0",
|
|
363
|
+
"resolved": "https://registry.npmjs.org/path-type/-/path-type-5.0.0.tgz",
|
|
364
|
+
"integrity": "sha512-5HviZNaZcfqP95rwpv+1HDgUamezbqdSYTyzjTvwtJSnIH+3vnbmWsItli8OFEndS984VT55M3jduxZbX351gg==",
|
|
365
|
+
"dev": true,
|
|
366
|
+
"license": "MIT",
|
|
367
|
+
"engines": {
|
|
368
|
+
"node": ">=12"
|
|
369
|
+
},
|
|
370
|
+
"funding": {
|
|
371
|
+
"url": "https://github.com/sponsors/sindresorhus"
|
|
372
|
+
}
|
|
373
|
+
},
|
|
374
|
+
"node_modules/picomatch": {
|
|
375
|
+
"version": "2.3.1",
|
|
376
|
+
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",
|
|
377
|
+
"integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",
|
|
378
|
+
"dev": true,
|
|
379
|
+
"license": "MIT",
|
|
380
|
+
"engines": {
|
|
381
|
+
"node": ">=8.6"
|
|
382
|
+
},
|
|
383
|
+
"funding": {
|
|
384
|
+
"url": "https://github.com/sponsors/jonschlinkert"
|
|
385
|
+
}
|
|
386
|
+
},
|
|
387
|
+
"node_modules/punycode.js": {
|
|
388
|
+
"version": "2.3.1",
|
|
389
|
+
"resolved": "https://registry.npmjs.org/punycode.js/-/punycode.js-2.3.1.tgz",
|
|
390
|
+
"integrity": "sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA==",
|
|
391
|
+
"dev": true,
|
|
392
|
+
"license": "MIT",
|
|
393
|
+
"engines": {
|
|
394
|
+
"node": ">=6"
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
"node_modules/queue-microtask": {
|
|
398
|
+
"version": "1.2.3",
|
|
399
|
+
"resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz",
|
|
400
|
+
"integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==",
|
|
401
|
+
"dev": true,
|
|
402
|
+
"funding": [
|
|
403
|
+
{
|
|
404
|
+
"type": "github",
|
|
405
|
+
"url": "https://github.com/sponsors/feross"
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
"type": "patreon",
|
|
409
|
+
"url": "https://www.patreon.com/feross"
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
"type": "consulting",
|
|
413
|
+
"url": "https://feross.org/support"
|
|
414
|
+
}
|
|
415
|
+
],
|
|
416
|
+
"license": "MIT"
|
|
417
|
+
},
|
|
418
|
+
"node_modules/reusify": {
|
|
419
|
+
"version": "1.1.0",
|
|
420
|
+
"resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz",
|
|
421
|
+
"integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==",
|
|
422
|
+
"dev": true,
|
|
423
|
+
"license": "MIT",
|
|
424
|
+
"engines": {
|
|
425
|
+
"iojs": ">=1.0.0",
|
|
426
|
+
"node": ">=0.10.0"
|
|
427
|
+
}
|
|
428
|
+
},
|
|
429
|
+
"node_modules/run-parallel": {
|
|
430
|
+
"version": "1.2.0",
|
|
431
|
+
"resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz",
|
|
432
|
+
"integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==",
|
|
433
|
+
"dev": true,
|
|
434
|
+
"funding": [
|
|
435
|
+
{
|
|
436
|
+
"type": "github",
|
|
437
|
+
"url": "https://github.com/sponsors/feross"
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
"type": "patreon",
|
|
441
|
+
"url": "https://www.patreon.com/feross"
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
"type": "consulting",
|
|
445
|
+
"url": "https://feross.org/support"
|
|
446
|
+
}
|
|
447
|
+
],
|
|
448
|
+
"license": "MIT",
|
|
449
|
+
"dependencies": {
|
|
450
|
+
"queue-microtask": "^1.2.2"
|
|
451
|
+
}
|
|
452
|
+
},
|
|
453
|
+
"node_modules/slash": {
|
|
454
|
+
"version": "5.1.0",
|
|
455
|
+
"resolved": "https://registry.npmjs.org/slash/-/slash-5.1.0.tgz",
|
|
456
|
+
"integrity": "sha512-ZA6oR3T/pEyuqwMgAKT0/hAv8oAXckzbkmR0UkUosQ+Mc4RxGoJkRmwHgHufaenlyAgE1Mxgpdcrf75y6XcnDg==",
|
|
457
|
+
"dev": true,
|
|
458
|
+
"license": "MIT",
|
|
459
|
+
"engines": {
|
|
460
|
+
"node": ">=14.16"
|
|
461
|
+
},
|
|
462
|
+
"funding": {
|
|
463
|
+
"url": "https://github.com/sponsors/sindresorhus"
|
|
464
|
+
}
|
|
465
|
+
},
|
|
466
|
+
"node_modules/to-regex-range": {
|
|
467
|
+
"version": "5.0.1",
|
|
468
|
+
"resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
|
|
469
|
+
"integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
|
|
470
|
+
"dev": true,
|
|
471
|
+
"license": "MIT",
|
|
472
|
+
"dependencies": {
|
|
473
|
+
"is-number": "^7.0.0"
|
|
474
|
+
},
|
|
475
|
+
"engines": {
|
|
476
|
+
"node": ">=8.0"
|
|
477
|
+
}
|
|
478
|
+
},
|
|
479
|
+
"node_modules/uc.micro": {
|
|
480
|
+
"version": "2.1.0",
|
|
481
|
+
"resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-2.1.0.tgz",
|
|
482
|
+
"integrity": "sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A==",
|
|
483
|
+
"dev": true,
|
|
484
|
+
"license": "MIT"
|
|
485
|
+
},
|
|
486
|
+
"node_modules/unicorn-magic": {
|
|
487
|
+
"version": "0.1.0",
|
|
488
|
+
"resolved": "https://registry.npmjs.org/unicorn-magic/-/unicorn-magic-0.1.0.tgz",
|
|
489
|
+
"integrity": "sha512-lRfVq8fE8gz6QMBuDM6a+LO3IAzTi05H6gCVaUpir2E1Rwpo4ZUog45KpNXKC/Mn3Yb9UDuHumeFTo9iV/D9FQ==",
|
|
490
|
+
"dev": true,
|
|
491
|
+
"license": "MIT",
|
|
492
|
+
"engines": {
|
|
493
|
+
"node": ">=18"
|
|
494
|
+
},
|
|
495
|
+
"funding": {
|
|
496
|
+
"url": "https://github.com/sponsors/sindresorhus"
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
}
|
data/package.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# rodauth-tools.gemspec
|
|
2
|
+
#
|
|
3
|
+
# frozen_string_literal: true
|
|
4
|
+
|
|
5
|
+
require_relative 'lib/rodauth/tools/version'
|
|
6
|
+
|
|
7
|
+
Gem::Specification.new do |spec|
|
|
8
|
+
spec.name = 'rodauth-tools'
|
|
9
|
+
spec.version = Rodauth::Tools::VERSION
|
|
10
|
+
spec.authors = ['delano']
|
|
11
|
+
spec.summary = 'Framework-agnostic Rodauth tools'
|
|
12
|
+
spec.description = <<~DESCRIPTION
|
|
13
|
+
A collection of framework-agnostic tools and utilities for Rodauth, including
|
|
14
|
+
database migration helpers, table inspection, and possibly... less (this is an
|
|
15
|
+
active development area, experimental stuff that may come and go).
|
|
16
|
+
DESCRIPTION
|
|
17
|
+
spec.homepage = 'https://github.com/delano/rodauth-tools'
|
|
18
|
+
spec.license = 'MIT'
|
|
19
|
+
spec.metadata = {
|
|
20
|
+
'bug_tracker_uri' => 'https://github.com/delano/rodauth-tools/issues',
|
|
21
|
+
'changelog_uri' => 'https://github.com/delano/rodauth-tools/blob/main/CHANGELOG.md',
|
|
22
|
+
'documentation_uri' => 'https://github.com/delano/rodauth-tools',
|
|
23
|
+
'source_code_uri' => 'https://github.com/delano/rodauth-tools',
|
|
24
|
+
'rubygems_mfa_required' => 'true'
|
|
25
|
+
}
|
|
26
|
+
spec.files = Dir.chdir(__dir__) do
|
|
27
|
+
`git ls-files -z`.split("\x0").reject do |f|
|
|
28
|
+
(File.expand_path(f) == __FILE__) || f.start_with?(*%w[bin/ docs/ examples/ spec/ try/ .github])
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
spec.require_paths = ['lib']
|
|
33
|
+
|
|
34
|
+
spec.required_ruby_version = '>= 3.2.0'
|
|
35
|
+
|
|
36
|
+
# Runtime dependencies only - needed by projects that use this via git
|
|
37
|
+
spec.add_dependency 'dry-inflector', '~> 1.1'
|
|
38
|
+
spec.add_dependency 'rodauth', '~> 2.41'
|
|
39
|
+
spec.add_dependency 'sequel', '~> 5.0'
|
|
40
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: rodauth-tools
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.3.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- delano
|
|
8
|
+
bindir: bin
|
|
9
|
+
cert_chain: []
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
|
+
dependencies:
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: dry-inflector
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
- - "~>"
|
|
17
|
+
- !ruby/object:Gem::Version
|
|
18
|
+
version: '1.1'
|
|
19
|
+
type: :runtime
|
|
20
|
+
prerelease: false
|
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
22
|
+
requirements:
|
|
23
|
+
- - "~>"
|
|
24
|
+
- !ruby/object:Gem::Version
|
|
25
|
+
version: '1.1'
|
|
26
|
+
- !ruby/object:Gem::Dependency
|
|
27
|
+
name: rodauth
|
|
28
|
+
requirement: !ruby/object:Gem::Requirement
|
|
29
|
+
requirements:
|
|
30
|
+
- - "~>"
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: '2.41'
|
|
33
|
+
type: :runtime
|
|
34
|
+
prerelease: false
|
|
35
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
36
|
+
requirements:
|
|
37
|
+
- - "~>"
|
|
38
|
+
- !ruby/object:Gem::Version
|
|
39
|
+
version: '2.41'
|
|
40
|
+
- !ruby/object:Gem::Dependency
|
|
41
|
+
name: sequel
|
|
42
|
+
requirement: !ruby/object:Gem::Requirement
|
|
43
|
+
requirements:
|
|
44
|
+
- - "~>"
|
|
45
|
+
- !ruby/object:Gem::Version
|
|
46
|
+
version: '5.0'
|
|
47
|
+
type: :runtime
|
|
48
|
+
prerelease: false
|
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
50
|
+
requirements:
|
|
51
|
+
- - "~>"
|
|
52
|
+
- !ruby/object:Gem::Version
|
|
53
|
+
version: '5.0'
|
|
54
|
+
description: |
|
|
55
|
+
A collection of framework-agnostic tools and utilities for Rodauth, including
|
|
56
|
+
database migration helpers, table inspection, and possibly... less (this is an
|
|
57
|
+
active development area, experimental stuff that may come and go).
|
|
58
|
+
executables: []
|
|
59
|
+
extensions: []
|
|
60
|
+
extra_rdoc_files: []
|
|
61
|
+
files:
|
|
62
|
+
- ".gitignore"
|
|
63
|
+
- ".gitlint"
|
|
64
|
+
- ".markdownlint-cli2.jsonc"
|
|
65
|
+
- ".pre-commit-config.yaml"
|
|
66
|
+
- ".rubocop.yml"
|
|
67
|
+
- ".rubocop_todo.yml"
|
|
68
|
+
- CHANGELOG.md
|
|
69
|
+
- CLAUDE.md
|
|
70
|
+
- CODE_OF_CONDUCT.md
|
|
71
|
+
- CONTRIBUTING.md
|
|
72
|
+
- Gemfile
|
|
73
|
+
- Gemfile.lock
|
|
74
|
+
- LICENSE.txt
|
|
75
|
+
- README.md
|
|
76
|
+
- Rakefile
|
|
77
|
+
- lib/rodauth/features/external_identity.rb
|
|
78
|
+
- lib/rodauth/features/hmac_secret_guard.rb
|
|
79
|
+
- lib/rodauth/features/jwt_secret_guard.rb
|
|
80
|
+
- lib/rodauth/features/table_guard.rb
|
|
81
|
+
- lib/rodauth/sequel_generator.rb
|
|
82
|
+
- lib/rodauth/table_inspector.rb
|
|
83
|
+
- lib/rodauth/template_inspector.rb
|
|
84
|
+
- lib/rodauth/tools.rb
|
|
85
|
+
- lib/rodauth/tools/console_helpers.rb
|
|
86
|
+
- lib/rodauth/tools/migration.rb
|
|
87
|
+
- lib/rodauth/tools/migration/sequel/account_expiration.erb
|
|
88
|
+
- lib/rodauth/tools/migration/sequel/active_sessions.erb
|
|
89
|
+
- lib/rodauth/tools/migration/sequel/audit_logging.erb
|
|
90
|
+
- lib/rodauth/tools/migration/sequel/base.erb
|
|
91
|
+
- lib/rodauth/tools/migration/sequel/disallow_password_reuse.erb
|
|
92
|
+
- lib/rodauth/tools/migration/sequel/email_auth.erb
|
|
93
|
+
- lib/rodauth/tools/migration/sequel/jwt_refresh.erb
|
|
94
|
+
- lib/rodauth/tools/migration/sequel/lockout.erb
|
|
95
|
+
- lib/rodauth/tools/migration/sequel/otp.erb
|
|
96
|
+
- lib/rodauth/tools/migration/sequel/otp_unlock.erb
|
|
97
|
+
- lib/rodauth/tools/migration/sequel/password_expiration.erb
|
|
98
|
+
- lib/rodauth/tools/migration/sequel/recovery_codes.erb
|
|
99
|
+
- lib/rodauth/tools/migration/sequel/remember.erb
|
|
100
|
+
- lib/rodauth/tools/migration/sequel/reset_password.erb
|
|
101
|
+
- lib/rodauth/tools/migration/sequel/single_session.erb
|
|
102
|
+
- lib/rodauth/tools/migration/sequel/sms_codes.erb
|
|
103
|
+
- lib/rodauth/tools/migration/sequel/verify_account.erb
|
|
104
|
+
- lib/rodauth/tools/migration/sequel/verify_login_change.erb
|
|
105
|
+
- lib/rodauth/tools/migration/sequel/webauthn.erb
|
|
106
|
+
- lib/rodauth/tools/version.rb
|
|
107
|
+
- package-lock.json
|
|
108
|
+
- package.json
|
|
109
|
+
- rodauth-tools.gemspec
|
|
110
|
+
homepage: https://github.com/delano/rodauth-tools
|
|
111
|
+
licenses:
|
|
112
|
+
- MIT
|
|
113
|
+
metadata:
|
|
114
|
+
bug_tracker_uri: https://github.com/delano/rodauth-tools/issues
|
|
115
|
+
changelog_uri: https://github.com/delano/rodauth-tools/blob/main/CHANGELOG.md
|
|
116
|
+
documentation_uri: https://github.com/delano/rodauth-tools
|
|
117
|
+
source_code_uri: https://github.com/delano/rodauth-tools
|
|
118
|
+
rubygems_mfa_required: 'true'
|
|
119
|
+
rdoc_options: []
|
|
120
|
+
require_paths:
|
|
121
|
+
- lib
|
|
122
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
123
|
+
requirements:
|
|
124
|
+
- - ">="
|
|
125
|
+
- !ruby/object:Gem::Version
|
|
126
|
+
version: 3.2.0
|
|
127
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
128
|
+
requirements:
|
|
129
|
+
- - ">="
|
|
130
|
+
- !ruby/object:Gem::Version
|
|
131
|
+
version: '0'
|
|
132
|
+
requirements: []
|
|
133
|
+
rubygems_version: 3.7.2
|
|
134
|
+
specification_version: 4
|
|
135
|
+
summary: Framework-agnostic Rodauth tools
|
|
136
|
+
test_files: []
|