Skip to content

Commit

Permalink
Fix missing shibboleth header
Browse files Browse the repository at this point in the history
  • Loading branch information
Keskimaki committed Mar 3, 2023
1 parent 5a541c4 commit acb0de1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/server/middeware/shibboleth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const headers = [
'mail',
'preferredlanguage',
'hypersonsisuid',
'hyGroupCn',
]

export default headersMiddleware(headers)
2 changes: 1 addition & 1 deletion src/server/routes/faculty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ facultyRouter.get('/', async (req, res) => {
})

facultyRouter.get('/user', async (req: RequestWithUser, res) => {
const { id, iamGroups } = req.user
const { id, iamGroups = [] } = req.user

if (!id) return res.send([])

Expand Down

0 comments on commit acb0de1

Please sign in to comment.