Commit 9a8d29e7 by Tom Christie Committed by GitHub

Merge pull request #5000 from jpadilla/issue-4994

Correctly set scheme in coreapi TokenAuthentication
parents 1c33e84e 7e76cd86
......@@ -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') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment