-
Notifications
You must be signed in to change notification settings - Fork 359
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(DHIS2-18994): support OAuth2 client credentials flow for Route API #19953
base: master
Are you sure you want to change the base?
Conversation
cjmamo
commented
Feb 17, 2025
•
edited
Loading
edited
- Support OAuth2 client credentials flow for Route API
- Solve nasty security regression which dirties the route entity during decryption causing the clear text secret to be inadvertently persisted. Will attempt to implement a safeguard in a separate PR so that this doesn't happen again.
fix(security): solve regression which dirties the route entity during decryption causing the clear text secret to be inadvertently persisted refactor: replace copy methods in AuthScheme implementations with Lombok builders
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.
I can't really judge the details of the security related code but the rest looks fine. The one comment that is important to me is about the throws Exception
in the controller. If possible we want to list concrete exceptions as that is how OpenAPI knows what error responses are possible.
dhis-2/dhis-api/src/test/java/org/hisp/dhis/eventhook/targets/auth/ApiTokenAuthSchemeTest.java
Outdated
Show resolved
Hide resolved
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/route/RouteService.java
Outdated
Show resolved
Hide resolved
...s/dhis-service-event-hook/src/main/java/org/hisp/dhis/eventhook/handlers/WebhookHandler.java
Show resolved
Hide resolved
dhis-2/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/RouteController.java
Outdated
Show resolved
Hide resolved
doc: add note about exception handling in WebhookHandler test: replace nulls with stubs
|