Merge pull request #5000 from jpadilla/issue-4994

Correctly set scheme in coreapi TokenAuthentication
This commit is contained in:
Tom Christie 2017-03-20 09:55:06 +00:00 committed by GitHub
commit 9a8d29e784

View File

@ -163,7 +163,7 @@ $('form.api-interaction').submit(function(event) {
if (window.auth && window.auth.type === 'token') {
// Header authentication
options.auth = new coreapi.auth.TokenAuthentication({
prefix: window.auth.scheme,
scheme: window.auth.scheme,
token: window.auth.token
})
} else if (window.auth && window.auth.type === 'basic') {