(argv)
| 4 | import OidcManager from '@solid/oidc-auth-manager' |
| 5 | |
| 6 | export 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 | } |
no test coverage detected