removed gov gateway references

This commit is contained in:
2022-10-18 11:51:30 +01:00
parent 5f7908c0c2
commit 8c5b299412
17 changed files with 87 additions and 191 deletions
+2 -21
View File
@@ -117,15 +117,8 @@ const RenderPasswordfield = ({
let Login = (props) => {
let { t } = useTranslation();
const {
handleSubmit,
pristine,
reset,
submitting,
setLoggedInUserId,
GG_CLIENT_ID,
GG_REDIRECT_URI,
} = props;
const { handleSubmit, pristine, reset, submitting, setLoggedInUserId } =
props;
const { data: session } = useSession();
@@ -135,17 +128,6 @@ let Login = (props) => {
// const [showSpinnerState, setShowSpinnerState] = useState(false);
const [validLoginID, setValidLoginID] = useState(null);
// console.log(
// "built login url path:",
// props.govGateway.config.authorization_endpoint +
// "?response_type=code&scope=openid&client_id=" +
// GG_CLIENT_ID +
// "&redirect_uri=" +
// GG_REDIRECT_URI +
// "&ui_locales=" +
// (router.locale == "cy" ? "cy" : "en-GB")
// );
// let spinnerState = () => {
// showSpinnerState == true
// ? setShowSpinnerState(false)
@@ -412,7 +394,6 @@ const mapStateToProps = (state) => {
watchedCases: state.watchedCases,
myRepresentations: state.myRepresentations,
awaitingSubmission: state.awaitingSubmission,
govGateway: state.govGateway,
};
};
+2 -6
View File
@@ -12,7 +12,7 @@ import Dns from "./homepage/dns";
const MainHome = (props) => {
let { t } = useTranslation();
const { showLogin, GG_REDIRECT_URI, GG_CLIENT_ID, session } = props;
const { showLogin, session } = props;
const router = useRouter();
const { locale } = router;
@@ -34,11 +34,7 @@ const MainHome = (props) => {
{showLogin == "true" && (
<>
<CaseSearch />
<Login
GG_CLIENT_ID={GG_CLIENT_ID}
GG_REDIRECT_URI={GG_REDIRECT_URI}
session={session}
/>
<Login session={session} />
</>
)}{" "}
<CaseComment />
+1 -2
View File
@@ -26,7 +26,6 @@ const MyPortal = (props) => {
console.info("////////////\n" + "logout" + "\n////////////");
destroyCookie({}, "pinsUser"),
window.localStorage.clear(),
//router.replace(props.ggLogout);
signOut({ callbackUrl: "/logout" });
};
@@ -143,7 +142,7 @@ const MyPortal = (props) => {
</div>
</div>
</main>
<TimeOut ggLogout={props.ggLogout} />
<TimeOut />
</>
);
};