-
Notifications
You must be signed in to change notification settings - Fork 124
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
ONYX-10520 : Add CreateConstraintsFromPolicy Command Class #2325
ONYX-10520 : Add CreateConstraintsFromPolicy Command Class #2325
Conversation
1e111de
to
4edd308
Compare
app/domain/authentication/authn_jwt/restriction_validation/create_constraints_from_policy.rb
Outdated
Show resolved
Hide resolved
app/domain/authentication/authn_jwt/restriction_validation/create_constraints_from_policy.rb
Outdated
Show resolved
Hide resolved
app/domain/authentication/authn_jwt/restriction_validation/create_constraints_from_policy.rb
Outdated
Show resolved
Hide resolved
app/domain/authentication/authn_jwt/restriction_validation/create_constraints_from_policy.rb
Outdated
Show resolved
Hide resolved
app/domain/authentication/authn_jwt/restriction_validation/create_constraints_from_policy.rb
Outdated
Show resolved
Hide resolved
app/domain/authentication/authn_jwt/restriction_validation/create_constraints_from_policy.rb
Outdated
Show resolved
Hide resolved
app/domain/authentication/authn_jwt/restriction_validation/create_constraints_from_policy.rb
Outdated
Show resolved
Hide resolved
app/domain/authentication/authn_jwt/vendor_configurations/configuration_jwt_generic_vendor.rb
Outdated
Show resolved
Hide resolved
@@ -658,6 +658,16 @@ module AuthnJwt | |||
msg: "Successfully fetched mapping claims '{0-mapping-claims}'", | |||
code: "CONJ00130I" | |||
) | |||
|
|||
CreateContraintsFromPolicy = ::Util::TrackableLogMessageClass.new( | |||
msg: "Creating constraints from policy...", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
challenge the "from policy" term
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hilagross @shulifink
We did agree we call it from policy in all places not?
app/domain/authentication/authn_jwt/restriction_validation/create_constraints_from_policy.rb
Outdated
Show resolved
Hide resolved
80a3a3c
to
60c21d9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only 2 comments left
And I successfully set authn-jwt jwks-uri variable with value of "myJWKs.json" endpoint | ||
|
||
Scenario: ONYX-10471 - Mandatory Claims Without Claims Mapping. Single mandatory claim - 200 OK | ||
Given I have a "variable" resource called "test-variable" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why its not part of your policy?
CONJ00037E Missing value for resource: cucumber:variable:conjur/authn-jwt/raw/mandatory-claims | ||
""" | ||
|
||
Scenario: ONYX-10891 - Complex Case - Adding Mandatory Claim after host configuration |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its not clear the full scenario you run here.
You run three when
but by the scenario you run only two.
You run basic scenario(pass), add mandatory claim (fail) update the policy (pass) the last when is not clear for me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Talked about it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
6bf01f7
to
89d5e75
Compare
89d5e75
to
cb34d8b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What does this PR do?
Add mandatory claims support to JWTGenericVendorConfiguration
What ticket does this PR close?
ONYX-10520
Checklists
Change log
Test coverage
Documentation
README
s) were updated in this PR, and/or there is a follow-on issue to update docs, orAPI Changes