-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(jans-cedarling): implement validation for userinfo_token JWT #9939
Commits on Oct 20, 2024
-
feat(jans-cedarling): implement KeyService for JwtService
- implemented a `KeyService` for `JwtService` that manages decoding keys which are used to validate Json Web Tokens (JWTs). Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 860ba3b - Browse repository at this point
Copy the full SHA 860ba3bView commit details -
feat(jans-cedarling): implement GetKey for KeyService
Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e47e657 - Browse repository at this point
Copy the full SHA e47e657View commit details -
feat(jans-cedarling): integrate jwt::KeyService with jwt::DecodingStr…
…ategy Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e40c80b - Browse repository at this point
Copy the full SHA e40c80bView commit details -
feat(jans-cedarling): replace custom mockhttp with mockito and refact…
…or services - Replaced custom `mockhttp` with `mockito` for simulating HTTP requests in tests. - Refactored `JwtService` and `KeyService` to remove the need for the `GetKey` trait. `KeyService` can now be initialized directly, simplifying the code and improving clarity. Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e639073 - Browse repository at this point
Copy the full SHA e639073View commit details -
refactor(jans-cedarling): restructure folder layout, improve document…
…ation, and simplify services - restructured the folder structure in the /jwt module for better organization. - added comprehensive docstrings to enhance code readability and maintainability. - simplified KeyService and DecodingStrategy by removing unnecessary traits for their communication. Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7ec377c - Browse repository at this point
Copy the full SHA 7ec377cView commit details -
chore(jans-cedarling): move mockito from dependencies to dev-dependen…
…cies for cleaner build Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2257511 - Browse repository at this point
Copy the full SHA 2257511View commit details -
merge: branch 'main' into jans-cedarling-9814
Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5e14b5e - Browse repository at this point
Copy the full SHA 5e14b5eView commit details
Commits on Oct 23, 2024
-
feat(jans-cedarling): add trusted_issuers field to the PolicyStore
Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4e2d45d - Browse repository at this point
Copy the full SHA 4e2d45dView commit details -
feat(jans-cedarling): reuse HTTP client and switch to eprintln for er…
…ror logging - reuse a HTTP client initialized on init for `KeyService` when making requests to improve efficiency - replaced `println!` with `eprintln!` for better error logging Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7976b58 - Browse repository at this point
Copy the full SHA 7976b58View commit details -
feat(jans-cedarling): implement custom error handling for lock acquis…
…ition failure - added error handling for cases where acquiring a lock on decoding keys fails - replaced `unwrap()` with a custom error to handle poisoned locks gracefully Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 460bc0b - Browse repository at this point
Copy the full SHA 460bc0bView commit details -
feat(jans-cedarling): implement validation for
userinfo_token
- validate the `userinfo_token` to ensure its integrity and correctness - verify that the `client_id` of the `userinfo_token` matches the `aud` of the corresponding `access_token` - verify that the `sub` of the `userinfo_token` matches the `sub` of the corresponding `id_token` Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 366050c - Browse repository at this point
Copy the full SHA 366050cView commit details -
feat(jans-cedarling): update token examples in
/examples
directory- revise example tokens to reflect current requirements Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 87d4f68 - Browse repository at this point
Copy the full SHA 87d4f68View commit details -
chore(jans-cedarling): remove unused fields from tokens in
jwt::token
- clean up the `jwt::token` module by removing fields that are unused. Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 01dd8b5 - Browse repository at this point
Copy the full SHA 01dd8b5View commit details -
feat(jans-cedarling): implement specific error messages for invalid t…
…oken types - introduced `InvalidAccessToken` error for invalid access tokens - introduced `InvalidIdToken` error for invalid ID tokens - introduced `InvalidUserinfoToken` error for invalid userinfo tokens - this change provides clearer feedback based on the type of invalid token encountered Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e60a4f2 - Browse repository at this point
Copy the full SHA e60a4f2View commit details -
docs: changes in policy store docs
Signed-off-by: Arnab Dutta <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b5e00a1 - Browse repository at this point
Copy the full SHA b5e00a1View commit details -
feat(jans-cedarling): implement Deserialize for TokenKind
- implement Deserialize for TokenKind instead of using the derialize_with macro Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0b2128f - Browse repository at this point
Copy the full SHA 0b2128fView commit details -
refactor(jans-cedarling): move test mod from init/test.rs into init/p…
…olicy_store.rs Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b600fdb - Browse repository at this point
Copy the full SHA b600fdbView commit details -
test(jans-cedarling): remove redundant assert in errors_on_multiple_m…
…appings Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 53b4f70 - Browse repository at this point
Copy the full SHA 53b4f70View commit details -
feat(jans-cedarling): implement Copy trait for TokenKind enum
- added the Copy trait implementation to TokenKind for more efficient value handling Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 98c50fb - Browse repository at this point
Copy the full SHA 98c50fbView commit details -
refactor(jans-cedarling): remove unnecessary .clone() calls on TokenKind
Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 24b2088 - Browse repository at this point
Copy the full SHA 24b2088View commit details
Commits on Oct 24, 2024
-
refactor(jans-cedarling): change MultipleRoleMappings error to use Ve…
…c<String> - updated the MultipleRoleMappings error variant to store a Vec<String> instead of a single String, allowing it to capture multiple tokens with role mappings. Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 782bcee - Browse repository at this point
Copy the full SHA 782bceeView commit details -
refactor(jans-cedarling): rename fields in PolicyStore to be more des…
…criptive - rename `schema` field in `PolicyStore` to `cedar_schema` - rename `policies` field in `PolicyStore` to `cedar_policies` Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7bf7adf - Browse repository at this point
Copy the full SHA 7bf7adfView commit details -
refactor(jans-cedarling): improve naming and deserialization for Poli…
…cyStore - policy_store_id is now only required when loading from Lock Master, simplifying the structure of policy_store.json - renamed and simplified field and function names for better clarity in policy deserialization - updated docstrings to enhance understanding of PolicyStore fields and deserialization process - updated test cases to reflect new naming conventions and improve error handling Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2709358 - Browse repository at this point
Copy the full SHA 2709358View commit details -
feat(jans-cedarling): introduce cedar_version field in policy_store.json
- added support for the cedar_version field to specify the version of Cedar being used. - this enhancement allows for version-specific parsing of schemas and policies during deserialization. - updated relevant structures and deserialization logic to validate the cedar_version format. Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 55dfa50 - Browse repository at this point
Copy the full SHA 55dfa50View commit details -
Configuration menu - View commit details
-
Copy full SHA for 90c7bdc - Browse repository at this point
Copy the full SHA 90c7bdcView commit details -
refactor(jans-cedarling): move deserialization logic for multiple rol…
…es to PolicyStore - checking for multiple roles now occurs during the deserialization of PolicyStore - the corresponding test has been relocated from `init/policy_store.rs` to `common/policy_store.rs` for better organization and clarity. Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for bcb0e43 - Browse repository at this point
Copy the full SHA bcb0e43View commit details -
refactor(jans-cedarling): rename parse_policy to parse_single_policy
- rename `parse_policy` to `parse_single_policy` to make the intent of calling the function clearer Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5f1c19b - Browse repository at this point
Copy the full SHA 5f1c19bView commit details -
Signed-off-by: Arnab Dutta <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1bf5bf7 - Browse repository at this point
Copy the full SHA 1bf5bf7View commit details -
docs(jans-cedarling): add missing docstrings in common/policy_store.rs
Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2f831ca - Browse repository at this point
Copy the full SHA 2f831caView commit details -
docs(jans-cedarling): update docs/cedarling/cedarling-policy-store.md
Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for fde6270 - Browse repository at this point
Copy the full SHA fde6270View commit details -
docs(jans-cedarling): update docs/dedarling/cedarling-jwt.md
Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6c70fa5 - Browse repository at this point
Copy the full SHA 6c70fa5View commit details -
Signed-off-by: Arnab Dutta <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0221382 - Browse repository at this point
Copy the full SHA 0221382View commit details -
fix(jans-cedarling): uncomment previously commented functions
Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 37ea3fd - Browse repository at this point
Copy the full SHA 37ea3fdView commit details -
docs: correct policy store format
Signed-off-by: Arnab Dutta <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3178f68 - Browse repository at this point
Copy the full SHA 3178f68View commit details -
docs: correct policy store format
Signed-off-by: Arnab Dutta <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9692d6c - Browse repository at this point
Copy the full SHA 9692d6cView commit details -
docs: correct policy store format
Signed-off-by: Arnab Dutta <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7a4db0a - Browse repository at this point
Copy the full SHA 7a4db0aView commit details
Commits on Oct 25, 2024
-
fix(jans-cedarling): remove unused commented code
Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3b7dae6 - Browse repository at this point
Copy the full SHA 3b7dae6View commit details -
docs(jans-cedarling): fix docstrings in PolicyStore
Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 208596a - Browse repository at this point
Copy the full SHA 208596aView commit details -
chore(jans-cedarling): renamed
check_token_metadata
to `parse_and_c……heck_token_metadata` Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for df336b1 - Browse repository at this point
Copy the full SHA df336b1View commit details -
refactor(jans-cedarling): replace custom version parsing with the sem…
…ver crate Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f07fcc2 - Browse repository at this point
Copy the full SHA f07fcc2View commit details -
refactor(jans-cedarling): simplify TokenKind parsing
- removed the need for a Visitor in parsing logic - users now pass `access_token`, `id_token`, `userinfo_token`, or `transaction_token` (case-insensitive) as the token type Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a5abfd9 - Browse repository at this point
Copy the full SHA a5abfd9View commit details -
chore(jans-cedarling): simplify policy parsing by removing unnecessar…
…y Ok wrapper Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e36f963 - Browse repository at this point
Copy the full SHA e36f963View commit details -
test(jans-cedarling): add unit test for handling invalid token type
Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f9f67d4 - Browse repository at this point
Copy the full SHA f9f67d4View commit details -
chore(jans-cedarling): replace string with JSON macro for invalid tok…
…en metadata test Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 33315bc - Browse repository at this point
Copy the full SHA 33315bcView commit details -
feat(jans-cedarling): enhance policy deserialization error handling
- updated the deserialization logic to collect and report multiple errors encountered during policy parsing Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for cc062d2 - Browse repository at this point
Copy the full SHA cc062d2View commit details -
Configuration menu - View commit details
-
Copy full SHA for c500ca0 - Browse repository at this point
Copy the full SHA c500ca0View commit details -
fix(jans-cedarling): resolve merge conflicts between jans-cedarling-i…
…ssue-9901 and jans-cedarling-9905 Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for fd635ea - Browse repository at this point
Copy the full SHA fd635eaView commit details -
test(jans-cedarling): move tests to a separate file and enhance input…
… clarity - reorganized tests into a dedicated file for better structure - improved readability of policy and schema inputs in the tests Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1c5f33f - Browse repository at this point
Copy the full SHA 1c5f33fView commit details -
chore(jans-cedarling): resolve Clippy warnings
- fixed needless borrows to improve code efficiency Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a1360cb - Browse repository at this point
Copy the full SHA a1360cbView commit details -
merge: branch 'jans-cedarling-9905' into jans-cedarling-9814
Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7a3ac9a - Browse repository at this point
Copy the full SHA 7a3ac9aView commit details -
test(jans-cedarling): add specific error assertion in unit tests
Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 26b8cb4 - Browse repository at this point
Copy the full SHA 26b8cb4View commit details
Commits on Oct 26, 2024
-
merge: branch 'main' into jans-cedarling-9905
Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for bb83394 - Browse repository at this point
Copy the full SHA bb83394View commit details -
merge: branch 'jans-cedarling-9814' into jans-cedarling-9832
Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for acf70f2 - Browse repository at this point
Copy the full SHA acf70f2View commit details -
chore(jans-cedarling): add comments to the tokens in the examples
- added comments so it's obvious what's in the claims in the tokens string in the examples directory Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d5632af - Browse repository at this point
Copy the full SHA d5632afView commit details -
fix(jans-cedarling): fix broken example with jwt validation
Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9b39d16 - Browse repository at this point
Copy the full SHA 9b39d16View commit details -
chore(jans-cedarling): update incorrect docstrings
Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 435a418 - Browse repository at this point
Copy the full SHA 435a418View commit details -
merge: branch 'main' into jans-cedarling-9832
Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 885b844 - Browse repository at this point
Copy the full SHA 885b844View commit details -
chore(jans-cedarling): resolve clippy warnings
Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 77823a6 - Browse repository at this point
Copy the full SHA 77823a6View commit details -
refactor(jwt): convert extract_claims to an associated function
- moved the `extract_claims` function out of the method that uses `self`, making it an associated function to avoid unnecessary usage of `self` while preserving organization within the impl block. Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b1a5d10 - Browse repository at this point
Copy the full SHA b1a5d10View commit details -
refactor(jans-cedarling): revert to custom Error for unsupported algo…
…rithm parsing - manually reverted to returning a custom Error when parsing an unsupported algorithm, preserving previous error reporting behavior Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c8c8945 - Browse repository at this point
Copy the full SHA c8c8945View commit details
Commits on Oct 27, 2024
-
merge: branch 'main' into jans-cedarling-9814
Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ae9a250 - Browse repository at this point
Copy the full SHA ae9a250View commit details -
chore(jans-cedarling): fix clippy warnings
Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1128c8d - Browse repository at this point
Copy the full SHA 1128c8dView commit details -
docs(jans-cedarling): fix wrong example in the docs
- renamed `person_id` to `user_id` in the example Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0407e39 - Browse repository at this point
Copy the full SHA 0407e39View commit details -
merge: branch 'jans-cedarling-9905' into jans-cedarling-9814
Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 67c233c - Browse repository at this point
Copy the full SHA 67c233cView commit details -
merge: branch 'jans-cedarling-9814' into jans-cedarling-9832
Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a626c7c - Browse repository at this point
Copy the full SHA a626c7cView commit details -
merge: branch 'main' into jans-cedarling-9905
Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6f7bba6 - Browse repository at this point
Copy the full SHA 6f7bba6View commit details -
merge: branch 'jans-cedarling-9905' into jans-cedarling-9814
Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 635fd96 - Browse repository at this point
Copy the full SHA 635fd96View commit details -
Configuration menu - View commit details
-
Copy full SHA for aa0ca33 - Browse repository at this point
Copy the full SHA aa0ca33View commit details
Commits on Oct 28, 2024
-
chore(jans-cedarling): replace
person_id
withuser_id
Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d50c9d9 - Browse repository at this point
Copy the full SHA d50c9d9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 263f279 - Browse repository at this point
Copy the full SHA 263f279View commit details -
merge: branch 'jans-cedarling-9814' into jans-cedarling-9832
Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4e3f0c8 - Browse repository at this point
Copy the full SHA 4e3f0c8View commit details -
merge: branch 'main' into jans-cedarling-9814
Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b974f5b - Browse repository at this point
Copy the full SHA b974f5bView commit details -
Configuration menu - View commit details
-
Copy full SHA for ed081a1 - Browse repository at this point
Copy the full SHA ed081a1View commit details -
merge: branch 'main' into jans-cedarling-9832
Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for faa4f90 - Browse repository at this point
Copy the full SHA faa4f90View commit details
Commits on Oct 29, 2024
-
chore(jans-cedarling): remove unused traits file
Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6d5a976 - Browse repository at this point
Copy the full SHA 6d5a976View commit details -
fix(jans-cedarling): update examples to align with schema changes
Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f0fec48 - Browse repository at this point
Copy the full SHA f0fec48View commit details -
docs(jans-cedarling): update README.md
- update README to show how to run the new tests Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for aa1e863 - Browse repository at this point
Copy the full SHA aa1e863View commit details -
feat(jans-cedarling): improve error handling
Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for fb93439 - Browse repository at this point
Copy the full SHA fb93439View commit details -
Configuration menu - View commit details
-
Copy full SHA for f90b486 - Browse repository at this point
Copy the full SHA f90b486View commit details -
fix(jans-cedarling): revert unintended change to the docs by a merge
Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 58febd3 - Browse repository at this point
Copy the full SHA 58febd3View commit details -
test(jans-cedarling): fix python unit tests
Signed-off-by: Oleh Bohzok <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 334f5a9 - Browse repository at this point
Copy the full SHA 334f5a9View commit details
Commits on Oct 30, 2024
-
chore(jans-cedarling): fix misspelled test function name
Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8860caf - Browse repository at this point
Copy the full SHA 8860cafView commit details -
test(jans-cedarling): improve test assertion and specificity
Signed-off-by: rmarinn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 01bc63b - Browse repository at this point
Copy the full SHA 01bc63bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 18ea57d - Browse repository at this point
Copy the full SHA 18ea57dView commit details