Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read properties of undefined (reading 'host') #85

Open
ghost opened this issue Sep 30, 2022 · 0 comments
Open

TypeError: Cannot read properties of undefined (reading 'host') #85

ghost opened this issue Sep 30, 2022 · 0 comments

Comments

@ghost
Copy link

ghost commented Sep 30, 2022

The build_signature function is using raw request headers obtained from Node HTTP to get the host. Direct interaction with the raq request object is not recommended by hapijs and headers are not defined on this object running [email protected].

TypeError: Cannot read properties of undefined (reading 'host')
at HMAC_SHA1.build_signature (PROJECT_DIR/node_modules/ims-lti/lib/hmac-sha1.js:71:47)
at Provider._valid_oauth (PROJECT_DIR/node_modules/ims-lti/lib/provider.js:67:31)
at Provider.valid_request (PROJECT_DIR/node_modules/ims-lti/lib/provider.js:51:19)
at Provider.valid_request (PROJECT_DIR/node_modules/ims-lti/lib/provider.js:4:59)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants