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

Method requestOptions

lib/requests/auth-request.mjs:46–70  ·  view source on GitHub ↗
(req, res)

Source from the content-addressed store, hash-verified

44 }
45
46 static requestOptions (req, res) {
47 let userStore, accountManager, localAuth
48 if (req.app && req.app.locals) {
49 const locals = req.app.locals
50 if (locals.oidc) {
51 userStore = locals.oidc.users
52 }
53 accountManager = locals.accountManager
54 localAuth = locals.localAuth
55 }
56 const authQueryParams = AuthRequest.extractAuthParams(req)
57 const returnToUrl = AuthRequest.parseParameter(req, 'returnToUrl')
58 const acceptToc = AuthRequest.parseParameter(req, 'acceptToc') === 'true'
59 const options = {
60 response: res,
61 session: req.session,
62 userStore,
63 accountManager,
64 returnToUrl,
65 authQueryParams,
66 localAuth,
67 acceptToc
68 }
69 return options
70 }
71
72 static extractAuthParams (req) {
73 let params

Callers 3

fromParamsMethod · 0.80
fromParamsMethod · 0.80
fromParamsMethod · 0.80

Calls 2

extractAuthParamsMethod · 0.80
parseParameterMethod · 0.80

Tested by

no test coverage detected