add functionality to assign user to teams through oidc custom claim
This commit is contained in:
parent
82c626e990
commit
9d56723a9a
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user