mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 11:24:45 +08:00
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:
committed by
GitHub
parent
b776f92e4e
commit
55360388f4
@ -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()
|
||||||
|
|||||||
@ -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)),
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user