Skip to content

Commit

Permalink
[ES-732] Fixed: Displayed action message instead of popup message whe…
Browse files Browse the repository at this point in the history
…n transaction get expired.

Signed-off-by: GurukiranP <talk2gurukiran@gmail.com>
  • Loading branch information
gk-4VII committed Feb 22, 2024
1 parent e0291bb commit dc30457
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 1 deletion.
1 change: 1 addition & 0 deletions oidc-ui/public/locales/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@
"proof_invalid_nonce": "قيمة غير صالحة في مطالبة PHAILLOLL NONCE.",
"invalid_state_response": "حالة غير صالحة",
"authCode_missing": "رمز المصادقة مفقود",
"failed_to_validate_captcha": "فشل التحقق من صحة كلمة التحقق",
"0": "النجاح",
"100": "الجهاز غير مسجل",
"101": "غير قادر على الكشف عن كائن القياسات الحيوية",
Expand Down
1 change: 1 addition & 0 deletions oidc-ui/public/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@
"proof_invalid_nonce": "Invalid value in proof payload nonce claim.",
"invalid_state_response": "Invalid state",
"authCode_missing": "AuthCode Missing",
"failed_to_validate_captcha": "Failed to validate captcha",
"0": "Success",
"100": "Device Not Registered",
"101": "Unable to Detect a Biometrics",
Expand Down
1 change: 0 additions & 1 deletion oidc-ui/src/components/Consent.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,6 @@ export default function Consent({

//errorCode is REQUIRED, errorDescription is OPTIONAL
const onError = async (errorCode, errorDescription) => {
let nonce = openIDConnectService.getNonce();
let state = openIDConnectService.getState();
let redirect_uri = openIDConnectService.getRedirectUri();

Expand Down
24 changes: 24 additions & 0 deletions oidc-ui/src/components/Password.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,30 @@ export default function Password({
show: true
});
}
else if (errors[0].errorCode === "invalid_transaction") {
let state = openIDConnectService.getState();
let redirect_uri = openIDConnectService.getRedirectUri();

if (!redirect_uri) {
return;
}

let params = "?";

if (errors[0].errorCode) {
params = params + "error_description=" + errors[0].errorCode + "&";
}

//REQUIRED
params = params + "state=" + state + "&";

//REQUIRED
params = params + "error=" + errors[0].errorCode;

window.onbeforeunload = null;

window.location.replace(redirect_uri + params);
}
else {
setErrorBanner({
errorCode: `${errors[0].errorCode}`,
Expand Down

0 comments on commit dc30457

Please sign in to comment.