Skip to content

jwe: use runtime checks instead of assertions#99

Open
unipolar wants to merge 1 commit intoIdentityPython:masterfrom
unipolar:fix-jwe-factory-accept-unencrypted-token
Open

jwe: use runtime checks instead of assertions#99
unipolar wants to merge 1 commit intoIdentityPython:masterfrom
unipolar:fix-jwe-factory-accept-unencrypted-token

Conversation

@unipolar
Copy link

Optimization strips all assertions, so assert shouldn't be used for control flow.
In this case, jwe.JWEnc.is_jwe returned True for all tokens after optimization.

Optimization strips all assertions, so assert shouldn't be used for
control flow.

In this case, jwe.JWEnc.is_jwe returned True for all tokens after
optimization.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant