Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
David Seaward
Keel - LDH Middleware
Commits
ba01293a
Commit
ba01293a
authored
Dec 21, 2017
by
David Seaward
Browse files
add parameter required for OAuth over HTTPS
parent
f79bd450
Changes
1
Hide whitespace changes
Inline
Side-by-side
purist/custom.py
View file @
ba01293a
...
...
@@ -27,7 +27,8 @@ class AuthenticationBackend(BaseBackend):
consumer_key
=
settings
.
WOO_CONSUMER_KEY
,
consumer_secret
=
settings
.
WOO_CONSUMER_SECRET
,
wp_api
=
True
,
version
=
"jwt-auth/v1"
,
version
=
"jwt-auth/v1"
,
# required for JWT Authentication
query_string_auth
=
True
,
# required for OAuth over HTTPS
)
jwt_response
=
jwt_wcapi
.
post
(
"token"
,
{
"username"
:
username
,
"password"
:
password
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment