update sec headers applied
This commit is contained in:
+30
-1
@@ -34,6 +34,8 @@ import {
|
||||
setAwaitingSubmission,
|
||||
setAwaitingSubmissionDetails,
|
||||
} from "../../store/awaitingSubmission/action";
|
||||
import { getGovGatewayConfig } from "../../store/govgateway/action";
|
||||
|
||||
import {
|
||||
getToken,
|
||||
getPersonalAccount,
|
||||
@@ -44,6 +46,13 @@ import {
|
||||
getPortalModuleDetails,
|
||||
} from "../../actions";
|
||||
|
||||
import {
|
||||
getProviderConfig,
|
||||
getGGToken,
|
||||
getUserInfo,
|
||||
getPortalLogin,
|
||||
} from "../../actions/govgateway";
|
||||
|
||||
const Home = (props) => {
|
||||
const {
|
||||
footerLinks,
|
||||
@@ -53,6 +62,7 @@ const Home = (props) => {
|
||||
watchedCases,
|
||||
awaitingSubmission,
|
||||
accountDetails,
|
||||
govGateway,
|
||||
} = props;
|
||||
let { t, lang } = useTranslation();
|
||||
|
||||
@@ -139,6 +149,7 @@ const Home = (props) => {
|
||||
watchedCases={watchedCases}
|
||||
awaitingSubmission={awaitingSubmission}
|
||||
accountDetails={accountDetails}
|
||||
ggLogout={govGateway.config.end_session_endpoint}
|
||||
/>
|
||||
</div>
|
||||
<Footer footerLinks={footerLinks} />
|
||||
@@ -161,6 +172,18 @@ export const getServerSideProps = wrapper.getServerSideProps(
|
||||
|
||||
let loggedInUser = cookies.pinsUser;
|
||||
|
||||
let providerConfig = await getProviderConfig();
|
||||
|
||||
console.log(
|
||||
"logout endpoint: ",
|
||||
providerConfig.end_session_endpoint,
|
||||
"\n",
|
||||
"redirect:",
|
||||
process.env.GG_REDIRECT_URI
|
||||
);
|
||||
|
||||
store.dispatch(getGovGatewayConfig(providerConfig));
|
||||
|
||||
const [
|
||||
accountDetails,
|
||||
myCases,
|
||||
@@ -176,7 +199,12 @@ export const getServerSideProps = wrapper.getServerSideProps(
|
||||
]);
|
||||
|
||||
//const cookiesMaker = nookies.get(ctx)
|
||||
console.log(accountDetails);
|
||||
console.log(
|
||||
"acc details:",
|
||||
accountDetails,
|
||||
_.has(accountDetails, "errorCode") != false
|
||||
);
|
||||
|
||||
const [
|
||||
myCasesDetails,
|
||||
myRepresentationsDetails,
|
||||
@@ -251,6 +279,7 @@ const mapStateToProps = (state) => {
|
||||
watchedCases: state.watchedCases,
|
||||
myRepresentations: state.myRepresentations,
|
||||
awaitingSubmission: state.awaitingSubmission,
|
||||
govGateway: state.govGateway,
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user