Skip to content

Commit

Permalink
AHWR-320 - Added another console.log (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
RobCatton authored Dec 16, 2024
1 parent 3d0d179 commit b133d67
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/auth/azure-auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const authenticate = async (redirectCode, cookieAuth) => {
})

console.log(JSON.stringify(token))
console.log(JSON.stringify({ cookieAuth }))
cookieAuth.set({
scope: token.idTokenClaims.roles,
account: token.account
Expand Down
1 change: 0 additions & 1 deletion app/auth/map-auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ const isInRole = require('./is-in-role')
const { administrator, processor, user, recommender, authoriser } = require('./permissions')

const mapAuth = (request) => {
console.log(request.auth)
return {
isAuthenticated: request.auth.isAuthenticated,
isAnonymous: !request.auth.isAuthenticated,
Expand Down
2 changes: 2 additions & 0 deletions app/config/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ 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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ffc-ahwr-backoffice",
"version": "1.24.83",
"version": "1.24.84",
"description": "Back office of the health and welfare of your livestock",
"homepage": "https://github.com/DEFRA/ffc-ahwr-backoffice",
"main": "app/index.js",
Expand Down

0 comments on commit b133d67

Please sign in to comment.