Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
idanovo committed Apr 16, 2024
1 parent 330f879 commit 139121a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/api/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,12 @@ func (c *Controller) ExternalPrincipalLogin(w http.ResponseWriter, r *http.Reque
return
}
c.LogAction(ctx, "external_principal_login", r, "", "", "")
c.Logger.Debug("external principal login")
jsonString, err := json.Marshal(body.IdentityRequest)
if err != nil {
c.Logger.WithError(err).Error("failed to marshal identity request")
} else {
c.Logger.WithField("identity_request", jsonString).Debug("external principal login")
}
externalPrincipal, err := c.Authentication.ExternalPrincipalLogin(ctx, body.IdentityRequest)
if c.handleAPIError(ctx, w, r, err) {
c.Logger.WithError(err).Error("external principal login failed")
Expand Down

0 comments on commit 139121a

Please sign in to comment.