```js
function processIdpInitiated(req, res, next) {
let user = req.user,
relayState = req.body.RelayState
logger.log2('debug', `RelayState value: ${relayState}`)
logger.log2('debug', `SAML reponse in body:\n${req.body.SAMLResponse}`)
abortIfProfileMissing(req, res, user)
idpInitiated.process(user, relayState, global.iiconfig, res, next)
}
```
When IDP Initiated requests start, user is processed as `req.user`. That's handed down as the request, which does not have a body. You can fairly easily fix this by setting the body onto it from the raw request:
```js
let user = req.user,
relayState = req.body.RelayState
logger.log2('debug', `RelayState value: ${relayState}`)
logger.log2('debug', `SAML reponse in body:\n${req.body.SAMLResponse}`)
abortIfProfileMissing(req, res, user)
user.body = req.body
idpInitiated.process(user, relayState, global.iiconfig, res, next)
```