Skip to content

Commit 23e627c

Browse files
authored
Merge pull request #12 from s-hal/master
Fix missing space when joining scope
2 parents dd82340 + 4c76b3c commit 23e627c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pyop/authz_state.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ def use_refresh_token(self, refresh_token, scope=None):
228228
logger.debug('trying to refresh token with superset scope, requested_scope=%s, granted_scope=%s',
229229
scope, authz_info['granted_scope'])
230230
raise InvalidScope('Requested scope includes non-granted value')
231-
scope = ''.join(scope)
231+
scope = ' '.join(scope)
232232
logger.debug('refreshing token with new scope, old_scope=%s -> new_scope=%s', authz_info['scope'], scope)
233233
else:
234234
# OAuth 2.0: scope: "[...] if omitted is treated as equal to the scope originally granted by the resource owner"

0 commit comments

Comments
 (0)