-
Notifications
You must be signed in to change notification settings - Fork 602
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
Override headersForRequest (with tests) #1033
Override headersForRequest (with tests) #1033
Conversation
Also relocates headersForRequest closer to its older equivalent, ajaxOptions
Adds request headers containing the authorization data as constructed | ||
by the {{#crossLink "DataAdapterMixin/authorizer:property"}}{{/crossLink}}. | ||
|
||
This method will only called in Ember Data 2.7 or greater, older versions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method will only *be* called in Ember Data 2.7 or greater, older versions
;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you tell I've had 4hrs of sleep today 😉
Looks good! Left some comments on minor assertion-style things. |
@marcoow should be good to go! |
* Override headersForRequest, fixes mainmatter#1003 * Test headersForRequest, assert authorizer presence Also relocates headersForRequest closer to its older equivalent, ajaxOptions * Test for when Adapter doesn't have headersForRequest * Better English, remove redundant test assertions
Original work completed by @JeroenvdV in #1009, but now with tests and asserting authorizer presence.
This attempts to fix #1003 so Ember Data 2.7 and greater can send authorization header data when using
DataAdapterMixin
.@marcoow let me know if this test coverage is sufficient!