Thx for reporting this... If you look further down in the checkAuthHeaders function, you will see that the methods continues on to check the Headers if the value wasn't found in the body. The problem here is that you are using a GET method, and when this method was written it apparently assumed at-least PUT/POST. I can do a quick update and try to the get the new package pushed to NPM ... but you can do this locally as well.
Go to your project, node_modules/jive-sdk/jive-sdk-service/lib/security.js > line 34 and make the following change:
var jiveUrl = req.body['jiveUrl'];
var jiveUrl = req.body ? req.body['jiveUrl'] : null;
and this should allow this function to work for GET as well.
Hope this helps, and let me know if this works. Feel free to commit any changes you may have to the SDK in GitHub, and we can review and commit it for you.
Note: If you do an npm update jive-sdk -g ... you should get version firstname.lastname@example.org which has the above fix committed. =)
Thanks! That seems to have fixed my problem.
There is an issue with email@example.com , the most recent version of express seems to be missing a bunch of dependencies and throws:
Unhandled rejection reason: Error: Most middleware (like bodyParser) is no longer bundled with Express and must be installed separately. Please see https://github.com/senchalabs/connect#middleware.
I am not currently able to file an issue on GIT, but these dependencies need to be added to the SDK.
The problem here is that you are using a GET method when this method was written it apparently assumed at-least Post.