feat: assign users to teams via OIDC claims #1393
|
@ -228,6 +228,7 @@ func HandleCallback(c echo.Context) error {
|
|||
log.Errorf("Found Error while signing out from teams %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
err = s.Commit()
|
||||
viehlieb marked this conversation as resolved
Outdated
|
||||
if err != nil {
|
||||
viehlieb marked this conversation as resolved
Outdated
konrad
commented
This should be an This should be an `Error` log message.
|
||||
_ = s.Rollback()
|
||||
|
@ -347,7 +348,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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user
Replace with
It could well be, that only a single team is received through the oidc token.
But
len(teamData) < 1
will only be true if there are 0 teams received?I should have phrased it better, this is equivalent:
yes, that's true of course. i do not know why i read it differently.