universalviewer
universalviewer copied to clipboard
info.json with auth 1.0 fails with javascript error "Cannot read property 'getHeader' of undefined"
UV version:
[email protected]
I'm submitting a:
- [x] bug report
- [ ] feature request => please use the user stories repo
- [ ] support request => Please do not submit support requests here, use stackoverflow
Current behavior:
Javascript error when opening an info.json that has auth 1.0 service:
Cannot read property 'getHeader' of undefined
After some debugging I found out that this method (in javascript) ..
AuthDialogue.prototype.create
... subscribes to SHOW_AUTH_DIALOGUE, but expects its callback
argument to be a normal object.
The sender however ...
Auth1.getContentProviderInteraction
sends it as an array of objects.
Expected behavior:
Steps to reproduce:
Related code:
// insert any relevant code here
Other information: