Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit 7313fea

Browse files
committed
Can't compare with something that's not there.
1 parent 102fbc7 commit 7313fea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/oidcmsg/oidc/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ def verify(self, **kwargs):
740740
if (_iat + _storage_time) < (_now - _skew):
741741
raise IATError('Issued too long ago')
742742

743-
if 'nonce' in kwargs:
743+
if 'nonce' in kwargs and 'nonce' in self:
744744
if kwargs['nonce'] != self['nonce']:
745745
raise ValueError('Not the same nonce')
746746

0 commit comments

Comments
 (0)