-
Notifications
You must be signed in to change notification settings - Fork 164
[RORDEV-1562] Separate ROR KBN authentication and authorization rules #1163
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
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
core/src/main/scala/tech/beshu/ror/accesscontrol/blocks/rules/auth/base/RorKbnRuleHelper.scala
Outdated
Show resolved
Hide resolved
...src/main/scala/tech/beshu/ror/accesscontrol/blocks/rules/auth/RorKbnAuthenticationRule.scala
Outdated
Show resolved
Hide resolved
.../src/main/scala/tech/beshu/ror/accesscontrol/blocks/rules/auth/RorKbnAuthorizationRule.scala
Outdated
Show resolved
Hide resolved
core/src/main/scala/tech/beshu/ror/accesscontrol/blocks/rules/auth/RorKbnAuthRule.scala
Outdated
Show resolved
Hide resolved
core/src/main/scala/tech/beshu/ror/accesscontrol/blocks/users/LocalUsersContext.scala
Outdated
Show resolved
Hide resolved
...ain/scala/tech/beshu/ror/accesscontrol/factory/decoders/rules/auth/RorKbnRulesDecoders.scala
Outdated
Show resolved
Hide resolved
...test/scala/tech/beshu/ror/integration/RorKbnAuthenticationYamlLoadedAccessControlTests.scala
Outdated
Show resolved
Hide resolved
...test/scala/tech/beshu/ror/integration/RorKbnAuthenticationYamlLoadedAccessControlTests.scala
Outdated
Show resolved
Hide resolved
.../test/scala/tech/beshu/ror/integration/RorKbnAuthnAndAuthzYamlLoadedAccessControlTests.scala
Show resolved
Hide resolved
core/src/test/scala/tech/beshu/ror/unit/acl/blocks/rules/auth/RorKbnAuthRuleTests.scala
Outdated
Show resolved
Hide resolved
...ain/scala/tech/beshu/ror/accesscontrol/factory/decoders/rules/auth/RorKbnRulesDecoders.scala
Outdated
Show resolved
Hide resolved
core/src/main/scala/tech/beshu/ror/accesscontrol/blocks/rules/auth/base/BaseRorKbnRule.scala
Outdated
Show resolved
Hide resolved
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
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.
Description of the changes after e2e tests:
...src/main/scala/tech/beshu/ror/accesscontrol/blocks/rules/auth/RorKbnAuthenticationRule.scala
Show resolved
Hide resolved
.../src/main/scala/tech/beshu/ror/accesscontrol/blocks/rules/auth/RorKbnAuthorizationRule.scala
Outdated
Show resolved
Hide resolved
...ain/scala/tech/beshu/ror/accesscontrol/factory/decoders/rules/auth/RorKbnRulesDecoders.scala
Outdated
Show resolved
Hide resolved
...test/scala/tech/beshu/ror/integration/RorKbnAuthenticationYamlLoadedAccessControlTests.scala
Show resolved
Hide resolved
.../src/main/scala/tech/beshu/ror/accesscontrol/blocks/rules/auth/RorKbnAuthorizationRule.scala
Outdated
Show resolved
Hide resolved
.../src/main/scala/tech/beshu/ror/accesscontrol/blocks/rules/auth/RorKbnAuthorizationRule.scala
Outdated
Show resolved
Hide resolved
...ain/scala/tech/beshu/ror/accesscontrol/factory/decoders/rules/auth/RorKbnRulesDecoders.scala
Outdated
Show resolved
Hide resolved
val rule = new RorKbnAuthorizationRule(settings) | ||
Right(RuleDefinition.create[RorKbnAuthorizationRule](rule)) | ||
case (Some(_), None) => | ||
Left(RulesLevelCreationError(Message(s"Cannot create ${RorKbnAuthorizationRule.Name.name.show} - missing groups settings"))) |
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.
Maybe "missing groups logic"? And maybe it'd be good to add this link to the doc too?
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.
Added this link in both places. Is it correct, that this section is not published on docs.readonlyrest.com ? (At least I couldn't find 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.
Probably not. During adding the new rules descriptions, could you please check why?
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.
On docs.readonlyrest.com the authorization-rules-details.md
document is linked as redirection to Github repo blob, not a document exposed on the website. I'm not sure if it is correct, but the links are in this PR are done the same way, so it is consistent.
...ain/scala/tech/beshu/ror/accesscontrol/factory/decoders/rules/auth/RorKbnRulesDecoders.scala
Outdated
Show resolved
Hide resolved
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
🚀Added separate ROR KBN authentication and authorization rules
Summary by CodeRabbit
New Features
Refactor
Tests