add functionality to assign user to teams through oidc custom claim

This commit is contained in:
viehlieb 2023-01-27 13:49:19 +01:00
parent 82c626e990
commit 9d56723a9a

View File

@ -224,6 +224,7 @@ func HandleCallback(c echo.Context) error {
log.Errorf("Found Error while signing out from teams %v", err)
}
}
err = s.Commit()
if err != nil {
_ = s.Rollback()
@ -343,7 +344,9 @@ func GetOrCreateTeamsByOIDCAndNames(s *xorm.Session, teamData []models.OIDCTeamD
log.Debugf("Team with oidc_id %v and name %v already exists.", team.OidcID, team.Name)
te = append(te, &team)
}
}
log.Debugf("Array: %v", te)
return te, err
}