Skip to content

Commit

Permalink
test debug
Browse files Browse the repository at this point in the history
  • Loading branch information
MalinAhlberg committed Nov 22, 2024
1 parent 591c53e commit 866d131
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sda/cmd/auth/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ func (auth AuthHandler) elixirLogin(ctx iris.Context) *OIDCData {

return nil
}
log.Debugf("DB is %v", auth.Config.DB)
err = auth.Config.DB.UpdateUserInfo(idStruct.User, idStruct.Name, idStruct.Email, idStruct.EdupersonEntitlement)
if err != nil {
log.Warnf("Could not log user info for %s (%s, %s)", idStruct.User, idStruct.Name, idStruct.Email)
Expand Down Expand Up @@ -412,6 +413,7 @@ func main() {
log.Error("database schema v14 is required")
panic(err)
}
log.Debugf("DB is %v", authHandler.Config.DB)

Check failure

Code scanning / CodeQL

Clear-text logging of sensitive information High

Sensitive data returned by an access to Password
flows to a logging call.

app.RegisterView(iris.HTML(authHandler.htmlDir, ".html"))
app.HandleDir("/public", iris.Dir(authHandler.staticDir))
Expand Down

0 comments on commit 866d131

Please sign in to comment.