Skip to content

Commit 1f1440c

Browse files
gardener-github-actions[bot]petersutter
andauthored
Add CSRF protection to token authorization endpoint (#2703)
Co-authored-by: Peter Sutter <peter.sutter@sap.com>
1 parent 6cd66af commit 1f1440c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

backend/lib/security/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ async function authorizationUrl (req, res) {
228228
}
229229

230230
async function authorizeToken (req, res) {
231+
csrfProtection(req, res)
231232
const idToken = chain(req.body)
232233
.get(['token'])
233234
.trim()

0 commit comments

Comments
 (0)