feat(router): add core changes for post and get eligibility check apis for modular authentication#10131
Merged
likhinbopanna merged 2 commits intomainfrom Nov 7, 2025
Conversation
…s for modular authentication
Changed Files
|
sahkal
reviewed
Nov 5, 2025
| let sdk_next_action = eligibility_handler | ||
| .run_check(StoreEligibilityCheckData) | ||
| .await? | ||
| .unwrap_or(AuthenticationSdkNextAction::Proceed); |
Contributor
There was a problem hiding this comment.
if the eligiblity check fails we will still proceed?? then what is point of eligibility
Contributor
Author
There was a problem hiding this comment.
If eligibility check fails, sdk_next_action is sent as Deny
If there's any failure while running eligibility checks, then the error is propogated
Proceed is sent only when all the eligibility checks are run and nothing failed
sahkal
approved these changes
Nov 5, 2025
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #10131 +/- ##
=======================================
Coverage ? 3.89%
=======================================
Files ? 1224
Lines ? 303048
Branches ? 0
=======================================
Hits ? 11804
Misses ? 291244
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
su-shivanshmathur
approved these changes
Nov 6, 2025
aadityaguptaa
pushed a commit
that referenced
this pull request
Nov 10, 2025
…s for modular authentication (#10131)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type of Change
Description
add core changes for post and get eligibility check apis for modular authentication
POST eligibility check data api - SDK will call this api to post the eligibility check data, where we persist the data in redis if merchant config is enabled
GET eligibility check data api - Merchant will call this api, to get the eligibility check data which posted by our SDK previously
Additional Changes
Motivation and Context
How did you test it?
Tested Manually
CURL
Response
CURL
Response
CURL
Response
CURL
Response
Checklist
cargo +nightly fmt --allcargo clippy