Add audit logging to post_login_handler

This commit is contained in:
Joshua Casey
2024-11-27 13:53:01 -06:00
parent 438ca437ec
commit de722332b1
5 changed files with 156 additions and 3 deletions
@@ -45,6 +45,8 @@ func NewHandler(
return httperr.New(http.StatusUnprocessableEntity, "upstream provider not found")
}
// TODO: Add audit event "auditevent.UsingUpstreamIDP"
downstreamAuthParams, err := url.ParseQuery(decodedState.AuthParams)
if err != nil {
plog.Error("error reading state downstream auth params", err)