Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
funkwhale
mopidy
Commits
d398c183
Verified
Commit
d398c183
authored
Feb 06, 2022
by
Georg Krause
Browse files
Fix tests
parent
495c874f
Pipeline
#19019
failed with stages
in 1 minute and 41 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
mopidy_funkwhale/client.py
View file @
d398c183
...
...
@@ -58,6 +58,10 @@ class APIClient(object):
self
.
config
=
config
self
.
oauth_token
=
get_token
(
config
)
token_endpoint
=
(
config
[
"funkwhale"
].
get
(
"token_endpoint"
)
or
"/api/v1/oauth/token/"
)
self
.
session
=
get_requests_session
(
config
[
"funkwhale"
][
"url"
],
proxy_config
=
config
[
"proxy"
],
...
...
@@ -65,9 +69,7 @@ class APIClient(object):
base_cls
=
OAuth2Session
,
client_id
=
self
.
config
[
"funkwhale"
][
"client_id"
],
token
=
self
.
oauth_token
,
auto_refresh_url
=
config
[
"funkwhale"
][
"url"
]
+
config
[
"funkwhale"
].
get
(
"token_endpoint"
)
or
"/api/v1/oauth/token/"
,
auto_refresh_url
=
config
[
"funkwhale"
][
"url"
]
+
token_endpoint
,
auto_refresh_kwargs
=
{
"client_id"
:
self
.
config
[
"funkwhale"
][
"client_id"
],
"client_secret"
:
self
.
config
[
"funkwhale"
][
"client_secret"
],
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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