mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 06:43:46 -05:00
Merge pull request #11784 from overleaf/jel-saml-log
[web] Only log SAMLResponse on error GitOrigin-RevId: 4bc33fadf49d148fd089bf45f87dfce6b0f268c3
This commit is contained in:
parent
4380f20f08
commit
db4d9f0562
1 changed files with 7 additions and 3 deletions
|
@ -41,10 +41,14 @@ function log(req, data, samlAssertion) {
|
||||||
samlLog.samlAssertion = JSON.stringify(samlAssertionForLog)
|
samlLog.samlAssertion = JSON.stringify(samlAssertionForLog)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (data.error || samlAssertion) {
|
if (data.error) {
|
||||||
data.body = {}
|
data.body = {}
|
||||||
if (req.body.email) data.body.email = req.body.email
|
if (req.body.email) {
|
||||||
if (req.body.SAMLResponse) data.body.SAMLResponse = req.body.SAMLResponse
|
data.body.email = req.body.email
|
||||||
|
}
|
||||||
|
if (req.body.SAMLResponse) {
|
||||||
|
data.body.SAMLResponse = req.body.SAMLResponse
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue