Skip to content

Commit

Permalink
Try to fix openssl legacy error (#3623)
Browse files Browse the repository at this point in the history
* chore(deps): update dependency postcss to v8.4.31 [security] (#3630)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* feat(cpex): add standalone scraper (#3622)

* chore(cpex): set term to next term instead of current (#3631)

* Change MPE to CPE and Open MPE (#3623)

* Fix serverless function not working (#3623)

* Change modules to courses (#3623)

* Change inS1 and inS2 from mpe to cpex and fix private key parsing (#3623)

* Change package.json to use openssl legacy (#3623)

Change package.json to set env variable(#3623)

* Remove nodeoptions from package.json and change mpe api link (#3623)

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Christopher Goh <chrisgzf@gmail.com>
Co-authored-by: Ravern Koh <ravernkoh@gmail.com>
  • Loading branch information
4 people committed Oct 8, 2023
1 parent 73fc3ee commit 48116b3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
"redux-persist": "6.0.0",
"redux-thunk": "2.4.2",
"reselect": "4.1.8",
"samlify": "2.8.10",
"samlify": "2.7.7",
"searchkit": "2.4.1-alpha.5",
"use-subscription": "1.8.0"
},
Expand Down
2 changes: 1 addition & 1 deletion website/src/apis/nusmods.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class NUSModsApi {
* @returns {string}
*/
static mpeModuleListUrl() {
return `${NUSModsApi.baseUrl('')}mpeModules.json`;
return `${NUSModsApi.baseUrl('')}cpexModules.json`;
}
}

Expand Down
2 changes: 1 addition & 1 deletion website/src/serverless/nus-auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const idp = samlify.IdentityProvider({

const sp = samlify.ServiceProvider({
metadata: fs.readFileSync(path.join(__dirname, './sp.xml')),
encPrivateKey: process.env.NUS_EXCHANGE_SP_PRIVATE_KEY,
encPrivateKey: process.env.NUS_EXCHANGE_SP_PRIVATE_KEY?.replace(/\\n/g, '\n'),
});

export const createLoginURL = (relayState = '') => {
Expand Down

0 comments on commit 48116b3

Please sign in to comment.