mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 16:36:54 +00:00
feature/added confirm-vrp-consent pages - tweaked
This commit is contained in:
parent
e1d2d92edd
commit
ac99b387fa
@ -193,8 +193,8 @@ class VrpConsentCreation extends MdcLoggable with RestHelper with APIMethods510
|
||||
tryo {json.parse(response).extract[ConsumerJsonV310]} match {
|
||||
case Full(consumerJsonV310) =>
|
||||
//4th: get the redirect url.
|
||||
val redirectURL = consumerJsonV310.redirect_url
|
||||
S.redirectTo(redirectURL)
|
||||
val redirectURL = consumerJsonV310.redirect_url.trim
|
||||
S.redirectTo(s"$redirectURL?CONSENT_REQUEST_ID=${consentJsonV510.consent_request_id.getOrElse("")}")
|
||||
case _ =>
|
||||
S.error(s"$InvalidJsonFormat The Json body should be the $ConsumerJsonV310. " +
|
||||
s"Please check `Get Consumer` !")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user