-
Notifications
You must be signed in to change notification settings - Fork 27
CORE-18171: Adjust rest permissions for password change #5402
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
CORE-18171: Adjust rest permissions for password change #5402
Conversation
9d264f8
to
333b963
Compare
Jenkins build for PR 5402 build 22 Build Successful: |
build e2e PR-402 |
Current e2e tests passing here https://ci02.dev.r3.com/job/Corda5/view/Full%20Health%205.2/job/corda5-e2e-tests/job/release%252F5.2/426/ |
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.
Looks fine in principle, few comments posted.
...e-impl/src/main/kotlin/net/corda/libs/permissions/endpoints/v1/user/impl/UserEndpointImpl.kt
Outdated
Show resolved
Hide resolved
...e-impl/src/main/kotlin/net/corda/libs/permissions/endpoints/v1/user/impl/UserEndpointImpl.kt
Outdated
Show resolved
Hide resolved
libs/rest/rest/src/main/kotlin/net/corda/rest/authorization/AuthorizationUtils.kt
Outdated
Show resolved
Hide resolved
libs/rest/rest-server-impl/src/main/kotlin/net/corda/rest/server/impl/context/ContextUtils.kt
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
One minor suggestion posted.
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
… authroization logic Signed-off-by: TomFitzpatrick <[email protected]>
…ties Signed-off-by: TomFitzpatrick <[email protected]>
Signed-off-by: TomFitzpatrick <[email protected]>
Signed-off-by: TomFitzpatrick <[email protected]>
Signed-off-by: TomFitzpatrick <[email protected]>
Signed-off-by: TomFitzpatrick <[email protected]>
…server-impl Signed-off-by: TomFitzpatrick <[email protected]>
Signed-off-by: TomFitzpatrick <[email protected]>
Signed-off-by: TomFitzpatrick <[email protected]>
Signed-off-by: TomFitzpatrick <[email protected]> update fix imports Signed-off-by: TomFitzpatrick <[email protected]> detekt Signed-off-by: TomFitzpatrick <[email protected]> detekt Signed-off-by: TomFitzpatrick <[email protected]>
Signed-off-by: TomFitzpatrick <[email protected]>
Signed-off-by: TomFitzpatrick <[email protected]>
Signed-off-by: TomFitzpatrick <[email protected]>
Signed-off-by: TomFitzpatrick <[email protected]>
Signed-off-by: TomFitzpatrick <[email protected]>
Signed-off-by: TomFitzpatrick <[email protected]>
…ient Signed-off-by: TomFitzpatrick <[email protected]>
Signed-off-by: TomFitzpatrick <[email protected]>
Signed-off-by: TomFitzpatrick <[email protected]>
fe7274b
to
0b00e51
Compare
|
This PR adds an AuthorizationProvider to the RestResource interface. This allows rest resources to provide custom authorization logic for particular routes, by overriding the default method in AuthorizationProvider.
This is used in UserEndpointImpl to ensure that the
changeUserPasswordSelf
method can always be called by a user, regardless of their permissions.Once this is merged, https://github.com/corda/corda-e2e-tests/pull/402 will enable further e2e tests which cover various permission scenarios.