Skip to content

Commit

Permalink
Hotfix v0.7.1 (#40)
Browse files Browse the repository at this point in the history
* feat(tests): add regression tests for issue #39 and proptest seeds

Added build_payload_from_claims_prop_test.rs to include regression tests for issue #39, ensuring the fix for invalid JSON payloads with CustomClaims remains effective.
Introduced generic_claims_wrap_value_prop_test.proptest-regressions to store seeds for failure cases generated by proptest.
Created an empty generic_claims_wrap_value_prop_test.rs file for future test implementations.

* feat(tests): add property tests for wrap_value and build_payload_from_claims

Added proptest dependency to Cargo.toml for property-based testing.
Created build_payload_from_claims_prop_test.proptest-regressions to store seeds for failure cases generated by proptest.
Updated build_payload_from_claims_prop_test.rs to include detailed property tests for the build_payload_from_claims function.
Added generic_claims_wrap_value_prop_test.proptest-regressions with additional seeds for failure cases.
Implemented generic_claims_wrap_value_prop_test.rs to validate the correctness and robustness of the wrap_value function using property tests.

* fix(generic_builder): handle empty keys and null values in claims

Updated set_claim method to ignore empty keys and handle null values correctly.
Refactored build_payload_from_claims to ensure proper nesting and serialization of claims.
Added wrap_claims and wrap_value helper functions to handle JSON object wrapping.
Included comprehensive tests for various claim scenarios:
Custom claim serialization
Empty claims
Null claims
Nested structures
Multiple claims
Different data types

* fix(generic_builder): refactor and add tests for dynamic claims and no claims

Refactored GenericBuilder to improve readability and maintainability.
Added tests for dynamic claims and scenarios with no claims for V2, Local tokens.
Ensured proper handling of various claim types and edge cases in the builder and parser.

* chore(release): bump version to 0.7.1

Updated Cargo.toml to reflect the new version 0.7.1.

* chore(release): bump version to 0.7.1

Updated Cargo.toml to reflect the new version 0.7.1.

* fix: resolve invalid JSON payloads with CustomClaims (issue #39)

These commits are intended to fix issue #39.

feat(tests): add regression tests for issue #39 and proptest seeds

Added build_payload_from_claims_prop_test.rs to include regression tests for issue #39, ensuring the fix for invalid JSON payloads with CustomClaims remains effective.
Introduced generic_claims_wrap_value_prop_test.proptest-regressions to store seeds for failure cases generated by proptest.
Created an empty generic_claims_wrap_value_prop_test.rs file for future test implementations.
feat(tests): add property tests for wrap_value and build_payload_from_claims

Added proptest dependency to Cargo.toml for property-based testing.
Created build_payload_from_claims_prop_test.proptest-regressions to store seeds for failure cases generated by proptest.
Updated build_payload_from_claims_prop_test.rs to include detailed property tests for the build_payload_from_claims function.
Added generic_claims_wrap_value_prop_test.proptest-regressions with additional seeds for failure cases.
Implemented generic_claims_wrap_value_prop_test.rs to validate the correctness and robustness of the wrap_value function using property tests.
fix(generic_builder): handle empty keys and null values in claims

Updated set_claim method to ignore empty keys and handle null values correctly.
Refactored build_payload_from_claims to ensure proper nesting and serialization of claims.
Added wrap_claims and wrap_value helper functions to handle JSON object wrapping.
Included comprehensive tests for various claim scenarios: custom claim serialization, empty claims, null claims, nested structures, multiple claims, and different data types.
fix(generic_builder): refactor and add tests for dynamic claims and no claims

Refactored GenericBuilder to improve readability and maintainability.
Added tests for dynamic claims and scenarios with no claims for V2, Local tokens.
Ensured proper handling of various claim types and edge cases in the builder and parser.
chore(release): bump version to 0.7.1

Updated Cargo.toml to reflect the new version 0.7.1.
These changes aim to address and resolve the issues related to invalid JSON payloads when using CustomClaims as described in issue #39.

* fix: resolve invalid JSON payloads with CustomClaims (issue #39)

These commits are intended to fix issue #39.

feat(tests): add regression tests for issue #39 and proptest seeds

Added build_payload_from_claims_prop_test.rs to include regression tests for issue #39, ensuring the fix for invalid JSON payloads with CustomClaims remains effective.
Introduced generic_claims_wrap_value_prop_test.proptest-regressions to store seeds for failure cases generated by proptest.
Created an empty generic_claims_wrap_value_prop_test.rs file for future test implementations.
feat(tests): add property tests for wrap_value and build_payload_from_claims

Added proptest dependency to Cargo.toml for property-based testing.
Created build_payload_from_claims_prop_test.proptest-regressions to store seeds for failure cases generated by proptest.
Updated build_payload_from_claims_prop_test.rs to include detailed property tests for the build_payload_from_claims function.
Added generic_claims_wrap_value_prop_test.proptest-regressions with additional seeds for failure cases.
Implemented generic_claims_wrap_value_prop_test.rs to validate the correctness and robustness of the wrap_value function using property tests.
fix(generic_builder): handle empty keys and null values in claims

Updated set_claim method to ignore empty keys and handle null values correctly.
Refactored build_payload_from_claims to ensure proper nesting and serialization of claims.
Added wrap_claims and wrap_value helper functions to handle JSON object wrapping.
Included comprehensive tests for various claim scenarios: custom claim serialization, empty claims, null claims, nested structures, multiple claims, and different data types.
fix(generic_builder): refactor and add tests for dynamic claims and no claims

Refactored GenericBuilder to improve readability and maintainability.
Added tests for dynamic claims and scenarios with no claims for V2, Local tokens.
Ensured proper handling of various claim types and edge cases in the builder and parser.
chore(release): bump version to 0.7.1

Updated Cargo.toml to reflect the new version 0.7.1.
These changes aim to address and resolve the issues related to invalid JSON payloads when using CustomClaims as described in issue #39.
  • Loading branch information
rrrodzilla authored Jun 1, 2024
1 parent 448738a commit cce5cf5
Show file tree
Hide file tree
Showing 6 changed files with 1,657 additions and 1,057 deletions.
4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rusty_paseto"
version = "0.7.0"
version = "0.7.1"
edition = "2021"
readme = "readme.md"
authors = ["Roland Rodriguez <[email protected]>"]
Expand Down Expand Up @@ -76,6 +76,8 @@ actix-identity = "0.4.0"
tokio = "1.17.0"
actix-utils = "3.0.0"
uuid = { version = "1.8.0", features = ["v4"] }
proptest = "1.4.0"
erased-serde = { version = "0.4.5" }

[[example]]
name = "actix_identity"
Expand Down
Loading

0 comments on commit cce5cf5

Please sign in to comment.