github.com/mattermost/mattermost-server/server/v8@v8.0.0-20230610055354-a6d1d38b273d/einterfaces/saml.go (about) 1 // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. 2 // See LICENSE.txt for license information. 3 4 package einterfaces 5 6 import ( 7 "github.com/mattermost/mattermost-server/server/public/model" 8 "github.com/mattermost/mattermost-server/server/v8/channels/app/request" 9 ) 10 11 type SamlInterface interface { 12 ConfigureSP() error 13 BuildRequest(relayState string) (*model.SamlAuthRequest, *model.AppError) 14 DoLogin(c *request.Context, encodedXML string, relayState map[string]string) (*model.User, *model.AppError) 15 GetMetadata() (string, *model.AppError) 16 CheckProviderAttributes(SS *model.SamlSettings, ouser *model.User, patch *model.UserPatch) string 17 }