Skip to content

Commit

Permalink
config key name updated
Browse files Browse the repository at this point in the history
  • Loading branch information
anshulv1401 committed Jul 24, 2023
1 parent 33ceb02 commit 73f9c4d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,14 +232,17 @@ mosip.keymanager.dao.enabled=false
crypto.PrependThumbprint.enable=true

## -------------------------------------------- IDP-UI config ----------------------------------------------------------
# NOTE:
# linked-transaction-expire-in-secs value should be a sum of mosip.esignet.authentication-expire-in-secs and linked cache
# expire in seconds under mosip.esignet.cache.expire-in-seconds property

mosip.esignet.ui.config.key-values={'sbi.env': 'Developer', 'sbi.timeout.DISC': 30, \
'sbi.timeout.DINFO': 30, 'sbi.timeout.CAPTURE': 30, 'sbi.capture.count.face': 1, 'sbi.capture.count.finger': 2, \
'sbi.capture.count.iris': 1, 'sbi.capture.score.face': 70, 'sbi.capture.score.finger':70, 'sbi.capture.score.iris':70, 'wallet.logo-url': 'inji_logo.png', \
'send.otp.channels':'email,phone', 'consent.screen.timeout-in-secs':${mosip.esignet.authentication-expire-in-secs}, \
'consent.screen.timeout-buffer-in-secs': 5, 'sbi.port.range': 4501-4600, 'sbi.bio.subtypes.iris': 'UNKNOWN', 'sbi.bio.subtypes.finger': 'UNKNOWN', \
'resend.otp.delay.secs': 120, 'captcha.enable': 'OTP', 'captcha.sitekey': '6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI', \
'mosip.esignet.link-auth-code-expire-in-secs': 120, 'wallet.qr-code-buffer-in-secs': 10, \
'resend.otp.delay.secs': 120, 'captcha.enable': '', 'captcha.sitekey': '6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI', \
'linked-transaction-expire-in-secs': 120, 'wallet.qr-code-buffer-in-secs': 10, \
'mosip.esignet.qr-code.deep-link-uri': 'inji://landing-page-name?linkCode=LINK_CODE&linkExpireDateTime=LINK_EXPIRE_DT', \
'mosip.esignet.qr-code.download-uri': '#', 'mosip.esignet.qr-code.enable': 'true', 'auth.txnid.length': 10, \
'otp.length': 6, 'password.regex': ''}
2 changes: 1 addition & 1 deletion oidc-ui/.env
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ REACT_APP_SBI_IRIS_CAPTURE_SCORE=70
REACT_APP_SBI_IRIS_BIO_SUBTYPES="UNKNOWN"
REACT_APP_SBI_FINGER_BIO_SUBTYPES="UNKNOWN"

REACT_APP_LINK_AUTH_CODE_TIMEOUT_IN_SEC=120
REACT_APP_LINKED_TRANSACTION_EXPIRE_IN_SEC=120
REACT_APP_QR_CODE_BUFFER_IN_SEC=10
REACT_APP_QRCODE_DEEP_LINK_URI="inji://landing-page-name?linkCode=LINK_CODE&linkExpireDateTime=LINK_EXPIRE_DT"
REACT_APP_QRCODE_APP_DOWNLOAD_URI="#"
Expand Down
8 changes: 4 additions & 4 deletions oidc-ui/src/components/LoginQRCode.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ export default function LoginQRCode({
const [error, setError] = useState(null);
const [qrCodeTimeOut, setQrCodeTimeout] = useState();

const linkAuthCodeExpireInSec =
const linkedTransactionExpireInSec =
openIDConnectService.getEsignetConfiguration(
configurationKeys.linkAuthCodeExpireInSec
) ?? process.env.REACT_APP_LINK_AUTH_CODE_TIMEOUT_IN_SEC;
configurationKeys.linkedTransactionExpireInSecs
) ?? process.env.REACT_APP_LINKED_TRANSACTION_EXPIRE_IN_SEC;

/*
The QRCode will be valid even after expiring on the UI for the period of qrCodeBufferInSecs.
Expand Down Expand Up @@ -262,7 +262,7 @@ export default function LoginQRCode({
try {
let codeExpiryDateTime = new Date();
codeExpiryDateTime.setSeconds(
codeExpiryDateTime.getSeconds() + Number(linkAuthCodeExpireInSec)
codeExpiryDateTime.getSeconds() + Number(linkedTransactionExpireInSec)
);
let timeLeft = (codeExpiryDateTime - new Date()) / 1000;
let linkAuthResponse;
Expand Down
2 changes: 1 addition & 1 deletion oidc-ui/src/constants/clientConstants.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const configurationKeys = {
captchaEnableComponents: "captcha.enable", //comma separated list of components where captcha needs to be shown
captchaSiteKey: "captcha.sitekey", //site key for ReCAPTCHA

linkAuthCodeExpireInSec: "mosip.esignet.link-auth-code-expire-in-secs",
linkedTransactionExpireInSecs: "linked-transaction-expire-in-secs",
qrCodeBufferInSecs: "wallet.qr-code-buffer-in-secs",
qrCodeDeepLinkURI: "mosip.esignet.qr-code.deep-link-uri",
appDownloadURI: "mosip.esignet.qr-code.download-uri",
Expand Down

0 comments on commit 73f9c4d

Please sign in to comment.