Skip to content

Commit

Permalink
[ES-1991] [ES-2031] merge changes to release-1.5.1-temp (#1111)
Browse files Browse the repository at this point in the history
* [ES-1991] added css for removing extra eye icon in edge browser (#1054)

* [ADDED] css for removing extra eye icon in edge browser

Signed-off-by: Zeeshan Mehboob <zeeshan.mehboob@infosys.com>

* Revert [ADDED] css for removing extra eye icon in edge browser

Signed-off-by: Zeeshan Mehboob <zeeshan.mehboob@infosys.com>

* [ADDED] css for extra eye removal from password field in edge

Signed-off-by: Zeeshan Mehboob <zeeshan.mehboob@infosys.com>

---------

Signed-off-by: Zeeshan Mehboob <zeeshan.mehboob@infosys.com>

* [ES-2031] added no_ekyc_provider error (#1088)

Signed-off-by: Zeeshan Mehboob <zeeshan.mehboob@infosys.com>

---------

Signed-off-by: Zeeshan Mehboob <zeeshan.mehboob@infosys.com>
  • Loading branch information
zesu22 authored Jan 16, 2025
1 parent 5486281 commit 165c226
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
5 changes: 5 additions & 0 deletions oidc-ui/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,11 @@ input[type="number"] {
padding-top: 10px;
}

input[type='password']::-ms-reveal,
input[type='password']::-ms-clear {
display: none;
}

@media screen and (max-width: 375px) {
.pincode-input-text {
width: 2em !important;
Expand Down
9 changes: 9 additions & 0 deletions oidc-ui/src/constants/clientConstants.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,14 @@ const modalityIconPath = {
KBI: "images/sign_in_with_kba.png"
};

const errorCodeObj = {
dismiss: "consent_rejected",
invalid_transaction: "invalid_transaction",
incompatible_browser: "incompatible_browser",
ekyc_failed: "ekyc_failed",
no_ekyc_provider: "no_ekyc_provider"
};

export {
deviceType,
challengeTypes,
Expand All @@ -115,4 +123,5 @@ export {
challengeFormats,
walletConfigKeys,
modalityIconPath,
errorCodeObj
};
8 changes: 1 addition & 7 deletions oidc-ui/src/pages/Consent.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import openIDConnectService from "../services/openIDConnectService";
import DefaultError from "../components/DefaultError";
import sha256 from "crypto-js/sha256";
import Base64 from "crypto-js/enc-base64";
import { errorCodeObj } from "../constants/clientConstants";

export default function ConsentPage() {
const [searchParams, setSearchParams] = useSearchParams();
Expand Down Expand Up @@ -44,13 +45,6 @@ export default function ConsentPage() {
return hashB64;
};

const errorCodeObj = {
dismiss: "consent_rejected",
invalid_transaction: "invalid_transaction",
incompatible_browser: "incompatible_browser",
ekyc_failed: "ekyc_failed"
};

const handleRedirection = (redirect_uri, errorCode) => {
urlInfoParams.set("error", errorCode);

Expand Down

0 comments on commit 165c226

Please sign in to comment.