fix(router): add new api endpoint for post authentication sync in modular authentication (#9615)

Co-authored-by: Sahkal Poddar <sahkal.poddar@juspay.in>
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Sai Harsha Vardhan
2025-09-30 16:38:20 +05:30
committed by GitHub
parent b776f92e4e
commit 55360388f4
2 changed files with 6 additions and 3 deletions

View File

@ -943,7 +943,7 @@ pub async fn authentication_eligibility_core(
let notification_url = match authentication_connector { let notification_url = match authentication_connector {
common_enums::AuthenticationConnectors::Juspaythreedsserver => { common_enums::AuthenticationConnectors::Juspaythreedsserver => {
Some(url::Url::parse(&format!( Some(url::Url::parse(&format!(
"{base_url}/authentication/{merchant_id}/{authentication_id}/sync", "{base_url}/authentication/{merchant_id}/{authentication_id}/redirect",
base_url = state.base_url, base_url = state.base_url,
merchant_id = merchant_id.get_string_repr(), merchant_id = merchant_id.get_string_repr(),
authentication_id = authentication_id.get_string_repr() authentication_id = authentication_id.get_string_repr()

View File

@ -2982,10 +2982,13 @@ impl Authentication {
web::resource("/{authentication_id}/authenticate") web::resource("/{authentication_id}/authenticate")
.route(web::post().to(authentication::authentication_authenticate)), .route(web::post().to(authentication::authentication_authenticate)),
) )
.service(
web::resource("{merchant_id}/{authentication_id}/redirect")
.route(web::post().to(authentication::authentication_sync_post_update)),
)
.service( .service(
web::resource("{merchant_id}/{authentication_id}/sync") web::resource("{merchant_id}/{authentication_id}/sync")
.route(web::post().to(authentication::authentication_sync)) .route(web::post().to(authentication::authentication_sync)),
.route(web::get().to(authentication::authentication_sync_post_update)),
) )
} }
} }