Skip to content

Commit

Permalink
add missing return in error case during shib auth
Browse files Browse the repository at this point in the history
  • Loading branch information
kordianbruck committed Jan 10, 2025
1 parent db9e093 commit 9bb86b4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web/saml.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ func configSaml(r *gin.Engine, daoWrapper dao.DaoWrapper) {
err := c.Request.ParseForm()
if err != nil {
c.JSON(http.StatusBadRequest, gin.H{"code": "400 - Bad Request", "error": err.Error()})
return
}
response, err := getSamlSpFromHost(samlSPs, c.Request.Host).ServiceProvider.ParseResponse(c.Request, []string{""})
if err != nil {
Expand Down

0 comments on commit 9bb86b4

Please sign in to comment.