Skip to content

fix(AHWR-380): Reverting msal node version #255

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions app/auth/azure-auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ const authenticate = async (redirectCode, cookieAuth) => {
redirectUri: config.auth.redirectUrl
})

console.log(JSON.stringify(token))
console.log(JSON.stringify({ cookieAuth }))
cookieAuth.set({
scope: token.idTokenClaims.roles,
account: token.account
Expand Down
2 changes: 0 additions & 2 deletions app/config/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ const { error, value } = schema.validate(config, { abortEarly: false })

if (error) {
throw new Error(`The auth config is invalid. ${error.message}`)
} else {
console.log('config', JSON.stringify(value))
}

module.exports = value
27 changes: 13 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ffc-ahwr-backoffice",
"version": "1.24.84",
"version": "1.24.85",
"description": "Back office of the health and welfare of your livestock",
"homepage": "https://github.com/DEFRA/ffc-ahwr-backoffice",
"main": "app/index.js",
Expand All @@ -24,7 +24,7 @@
],
"license": "OGL-UK-3.0",
"dependencies": {
"@azure/msal-node": "2.9.2",
"@azure/msal-node": "1.14.5",
"@hapi/boom": "10.00",
"@hapi/catbox-redis": "^6.0.2",
"@hapi/cookie": "^11.0.2",
Expand Down Expand Up @@ -67,6 +67,11 @@
"webpack": "^5.68.0",
"webpack-cli": "^4.9.2"
},
"overrides": {
"@azure/msal-node": {
"jsonwebtoken": "9.0.0"
}
},
"standard": {
"env": {
"jest": true
Expand Down