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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pyop/authz_state.py

Lines changed: 1 addition & 1 deletion
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)