Enable basic auth provider and bump version of lib
This commit is contained in:
parent
662ba0aa3d
commit
8e99d91701
@ -8,7 +8,7 @@
|
|||||||
"lib": "lib"
|
"lib": "lib"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@extollo/lib": "^0.9.32",
|
"@extollo/lib": "^0.9.33",
|
||||||
"copyfiles": "^2.4.1",
|
"copyfiles": "^2.4.1",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"ts-expose-internals": "^4.5.4",
|
"ts-expose-internals": "^4.5.4",
|
||||||
|
@ -2,7 +2,7 @@ lockfileVersion: 5.3
|
|||||||
|
|
||||||
specifiers:
|
specifiers:
|
||||||
'@extollo/cc': ^0.6.0
|
'@extollo/cc': ^0.6.0
|
||||||
'@extollo/lib': ^0.9.32
|
'@extollo/lib': ^0.9.33
|
||||||
copyfiles: ^2.4.1
|
copyfiles: ^2.4.1
|
||||||
rimraf: ^3.0.2
|
rimraf: ^3.0.2
|
||||||
ts-expose-internals: ^4.5.4
|
ts-expose-internals: ^4.5.4
|
||||||
@ -12,7 +12,7 @@ specifiers:
|
|||||||
zod: ^3.11.6
|
zod: ^3.11.6
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
'@extollo/lib': 0.9.32
|
'@extollo/lib': 0.9.33
|
||||||
copyfiles: 2.4.1
|
copyfiles: 2.4.1
|
||||||
rimraf: 3.0.2
|
rimraf: 3.0.2
|
||||||
ts-expose-internals: 4.5.4
|
ts-expose-internals: 4.5.4
|
||||||
@ -110,8 +110,8 @@ packages:
|
|||||||
- supports-color
|
- supports-color
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@extollo/lib/0.9.32:
|
/@extollo/lib/0.9.33:
|
||||||
resolution: {integrity: sha512-3DuRrLFmYY6w0rK5QKSlNWbGZnel6Lj2vjSGwwbj1IEJXGcZSA+TMXLghAwPkKyUsyX0WwdXVn6S51jmRHyWJw==}
|
resolution: {integrity: sha512-W7q1lSJXPDwKw6Xpihikh23zYyECUgcAydR/3FRAXwhpV+KV071UMmWCDRztP0cOzF2xJhkk6sa4fLSR3T65qA==}
|
||||||
dependencies:
|
dependencies:
|
||||||
'@atao60/fse-cli': 0.1.7
|
'@atao60/fse-cli': 0.1.7
|
||||||
'@extollo/ui': 0.1.0_@types+node@14.18.12
|
'@extollo/ui': 0.1.0_@types+node@14.18.12
|
||||||
@ -1148,7 +1148,7 @@ packages:
|
|||||||
source-map: 0.6.1
|
source-map: 0.6.1
|
||||||
wordwrap: 1.0.0
|
wordwrap: 1.0.0
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
uglify-js: 3.15.3
|
uglify-js: 3.15.4
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/has-flag/4.0.0:
|
/has-flag/4.0.0:
|
||||||
@ -2531,8 +2531,8 @@ packages:
|
|||||||
engines: {node: '>=4.2.0'}
|
engines: {node: '>=4.2.0'}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
|
||||||
/uglify-js/3.15.3:
|
/uglify-js/3.15.4:
|
||||||
resolution: {integrity: sha512-6iCVm2omGJbsu3JWac+p6kUiOpg3wFO2f8lIXjfEb8RrmLjzog1wTPMmwKB7swfzzqxj9YM+sGUM++u1qN4qJg==}
|
resolution: {integrity: sha512-vMOPGDuvXecPs34V74qDKk4iJ/SN4vL3Ow/23ixafENYvtrNvtbcgUeugTcUGRGsOF/5fU8/NYSL5Hyb3l1OJA==}
|
||||||
engines: {node: '>=0.8.0'}
|
engines: {node: '>=0.8.0'}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
requiresBuild: true
|
requiresBuild: true
|
||||||
|
@ -1,8 +1,19 @@
|
|||||||
import {AuthenticationConfig, ORMUserRepository} from '@extollo/lib'
|
import {AuthenticationConfig, ORMUserRepository, BasicLoginProvider} from '@extollo/lib'
|
||||||
|
|
||||||
const authConfig: AuthenticationConfig = {
|
const authConfig: AuthenticationConfig = {
|
||||||
storage: ORMUserRepository,
|
storage: ORMUserRepository,
|
||||||
providers: {},
|
providers: {
|
||||||
|
basic: {
|
||||||
|
driver: BasicLoginProvider,
|
||||||
|
config: {
|
||||||
|
default: true,
|
||||||
|
allow: {
|
||||||
|
login: true,
|
||||||
|
registration: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
export default authConfig
|
export default authConfig
|
||||||
|
Loading…
Reference in New Issue
Block a user