Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Nounous
django-printer
Commits
4c049148
Verified
Commit
4c049148
authored
Mar 31, 2022
by
ynerant
Browse files
Fix auth token refresh, fixes
#1
parent
045ee6e4
Pipeline
#10052
passed with stages
in 2 minutes and 10 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
printer/models.py
View file @
4c049148
...
...
@@ -756,7 +756,8 @@ class AccessToken(models.Model):
oauth_client
=
oauth
.
notekfet
.
_get_oauth_client
()
# Actually refresh the token
token
=
oauth_client
.
refresh_token
(
oauth
.
notekfet
.
access_token_url
,
refresh_token
=
self
.
refresh_token
)
refresh_token
=
self
.
refresh_token
,
scope
=
self
.
scopes
)
self
.
access_token
=
token
[
'access_token'
]
self
.
expires_in
=
token
[
'expires_in'
]
self
.
scopes
=
token
[
'scope'
]
...
...
Write
Preview
Supports
Markdown
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