-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(admin-ui): update token script should reject the tampered user-in…
…fo-jwt (#1960) * update token script should reject the tampered user-info-jwt * resolve sonar qube issues * show alert when token expored
- Loading branch information
1 parent
82599ec
commit 49c7cca
Showing
5 changed files
with
94 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
import React from "react"; | ||
import { useTranslation } from "react-i18next"; | ||
import { Button, Modal, ModalBody, ModalFooter, ModalHeader } from "reactstrap"; | ||
import PropTypes from 'prop-types' | ||
|
||
const GluuPermissionModal = ({ handler, isOpen }) => { | ||
const { t } = useTranslation(); | ||
|
||
return ( | ||
<div> | ||
<Modal | ||
centered | ||
isOpen={isOpen} | ||
style={{ minWidth: "45vw" }} | ||
toggle={handler} | ||
className="modal-outline-primary" | ||
backdrop="static" | ||
> | ||
<ModalHeader> | ||
<i className="bi bi-shield-lock" /> {t("dashboard.access_denied")} | ||
</ModalHeader> | ||
<ModalBody className="text-center"> | ||
<p className="text-muted"> | ||
🚫 <strong>{t("dashboard.access_denied_message")}</strong> | ||
</p> | ||
<p>{t("dashboard.access_contact_admin")}</p> | ||
</ModalBody> | ||
<ModalFooter> | ||
<Button | ||
className="d-flex align-items-center" | ||
onClick={handler} | ||
> | ||
{t("menus.signout")} | ||
</Button> | ||
</ModalFooter> | ||
</Modal> | ||
|
||
{/* Scoped CSS inside the component */} | ||
<style> | ||
{` | ||
.modal { | ||
background: #000 !important; | ||
} | ||
`} | ||
</style> | ||
</div> | ||
); | ||
}; | ||
|
||
|
||
GluuPermissionModal.propTypes = { | ||
handler: PropTypes.func, | ||
isOpen: PropTypes.bool, | ||
} | ||
|
||
export default GluuPermissionModal; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters