Plugin groups (#30320)
* add new pluginapi methods * SAML login hook * set ReAddRemovedMembers to true for plugin groups * change to DoLogin signature for SAML
Этот коммит содержится в:
@@ -7,6 +7,7 @@ import (
|
||||
"io"
|
||||
"net/http"
|
||||
|
||||
saml2 "github.com/mattermost/gosaml2"
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
)
|
||||
|
||||
@@ -61,6 +62,7 @@ const (
|
||||
OnSharedChannelsAttachmentSyncMsgID = 43
|
||||
OnSharedChannelsProfileImageSyncMsgID = 44
|
||||
GenerateSupportDataID = 45
|
||||
OnSAMLLoginID = 46
|
||||
TotalHooksID = iota
|
||||
)
|
||||
|
||||
@@ -395,4 +397,9 @@ type Hooks interface {
|
||||
//
|
||||
// Minimum server version: 9.8
|
||||
GenerateSupportData(c *Context) ([]*model.FileData, error)
|
||||
|
||||
// OnSAMLLogin is invoked after a successful SAML login.
|
||||
//
|
||||
// Minimum server version: 10.7
|
||||
OnSAMLLogin(c *Context, user *model.User, assertion *saml2.AssertionInfo) error
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user