MCPcopy Index your code
hub / github.com/nodeSolidServer/node-solid-server / fromServerConfig

Function fromServerConfig

lib/models/oidc-manager.mjs:6–22  ·  view source on GitHub ↗
(argv)

Source from the content-addressed store, hash-verified

4import OidcManager from '@solid/oidc-auth-manager'
5
6export function fromServerConfig (argv) {
7 const providerUri = argv.host.serverUri
8 const authCallbackUri = new URL('/api/oidc/rp', providerUri).toString()
9 const postLogoutUri = new URL('/goodbye', providerUri).toString()
10 const dbPath = path.join(argv.dbPath, 'oidc')
11 const options = {
12 debug: debug.authentication,
13 providerUri,
14 dbPath,
15 authCallbackUri,
16 postLogoutUri,
17 saltRounds: argv.saltRounds,
18 delayBeforeRegisteringInitialClient: argv.delayBeforeRegisteringInitialClient,
19 host: { debug: debug.authentication }
20 }
21 return OidcManager.from(options)
22}

Callers 3

initializeFunction · 0.90
deleteUsersFunction · 0.90

Calls 1

fromMethod · 0.45

Tested by

no test coverage detected