Skip to content

Commit 28964c5

Browse files
Merge pull request #45 from REANNZ/fix-exchange-code-update-db
fix: auth_state: update db when marking code as used
2 parents 970abcb + b4c32ec commit 28964c5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/pyop/authz_state.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ def exchange_code_for_token(self, authorization_code):
200200
raise InvalidAuthorizationCode('{} has expired'.format(authorization_code))
201201

202202
authz_info['used'] = True
203+
self.authorization_codes[authorization_code] = authz_info
203204

204205
access_token = self._create_access_token(authz_info['sub'], authz_info[self.KEY_AUTHORIZATION_REQUEST],
205206
authz_info['granted_scope'],

0 commit comments

Comments
 (0)