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

Function createOptions

test/integration/acl-oidc-test.mjs:142–156  ·  view source on GitHub ↗
(path, user, contentType = 'text/plain')

Source from the content-addressed store, hash-verified

140 const origin2 = 'http://example.com/'
141
142 function createOptions (path, user, contentType = 'text/plain') {
143 const options = {
144 url: timAccountUri + path,
145 headers: {
146 accept: 'text/turtle',
147 'content-type': contentType
148 }
149 }
150 if (user) {
151 const accessToken = userCredentials[user]
152 options.headers.Authorization = 'Bearer ' + accessToken
153 }
154
155 return options
156 }
157
158 describe('no ACL', function () {
159 it('Should return 500 since no ACL is a server misconfig', function (done) {

Callers 1

acl-oidc-test.mjsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected