Skip to content

Register the Moesif consent event publisher#8151

Open
bhagyasakalanka wants to merge 3 commits into
wso2:masterfrom
bhagyasakalanka:register-moesif-consent-publisher
Open

Register the Moesif consent event publisher#8151
bhagyasakalanka wants to merge 3 commits into
wso2:masterfrom
bhagyasakalanka:register-moesif-consent-publisher

Conversation

@bhagyasakalanka

Copy link
Copy Markdown
Contributor

Purpose

Register the Moesif consent event publisher as an event handler, so it receives the consent-management events. This is the framework-config counterpart to the publisher added in wso2-extensions/identity-moesif-integration#24 — same pattern as the existing Moesif publishers (authentication, flow, registration, org-switch, session, token-issuance).

Change

Adds moesifConsentPublisher to org.wso2.carbon.identity.event.server.feature.default.json:

  • module_index 71 (next after the token-issuance publisher at 70)
  • properties.enable = false (off by default; enabled per-tenant via the Moesif governance connector)
  • Subscriptions: POST_ADD_RECEIPT, POST_AUTHORIZE_CONSENT, POST_REVOKE_RECEIPT, POST_DELETE_RECEIPT

The handler name matches MoesifConsentDataPublishHandler.getName() (moesifConsentPublisher) in the integration repo.

Related

Registers the moesifConsentPublisher event handler (module index 71,
disabled by default) subscribed to the consent-management events
POST_ADD_RECEIPT, POST_AUTHORIZE_CONSENT, POST_REVOKE_RECEIPT and
POST_DELETE_RECEIPT, so the Moesif consent publisher can receive them.
@coderabbitai

coderabbitai Bot commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yml

Review profile: CHILL

Plan: Pro

Run ID: 52550b79-7bfb-48d3-aeec-fc2c38294216

📥 Commits

Reviewing files that changed from the base of the PR and between af6c6b8 and 3edee37.

📒 Files selected for processing (1)
  • features/identity-event/org.wso2.carbon.identity.event.server.feature/resources/org.wso2.carbon.identity.event.server.feature.default.json
🚧 Files skipped from review as they are similar to previous changes (1)
  • features/identity-event/org.wso2.carbon.identity.event.server.feature/resources/org.wso2.carbon.identity.event.server.feature.default.json

📝 Walkthrough

Walkthrough

The feature configuration closes the existing OAuth token issuance subscriptions array and adds a disabled moesifConsentPublisher scheme with consent and receipt event subscriptions.

Changes

Consent Event Publisher Configuration

Layer / File(s) Summary
moesifConsentPublisher scheme configuration
features/identity-event/.../org.wso2.carbon.identity.event.server.feature.default.json
The subscriptions array is closed, and a new moesifConsentPublisher scheme is added with module index 72, properties.enable set to false, and subscriptions for receipt and consent lifecycle events.
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description covers purpose and change, but most required template sections are missing or unfilled. Add the missing template sections: Goals, Approach, User stories, Release note, Documentation, tests, Security checks, and the other required fields.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly matches the main change: registering the Moesif consent event publisher.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Jun 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 52.91%. Comparing base (c97c4ea) to head (3edee37).

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #8151      +/-   ##
============================================
+ Coverage     52.60%   52.91%   +0.31%     
+ Complexity    21135    20988     -147     
============================================
  Files          2197     2197              
  Lines        130930   129659    -1271     
  Branches      19453    19328     -125     
============================================
- Hits          68875    68615     -260     
+ Misses        53635    52671     -964     
+ Partials       8420     8373      -47     
Flag Coverage Δ
unit 38.23% <ø> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sonarqubecloud

Copy link
Copy Markdown

❌ The last analysis has failed.

See analysis details on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant