5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2025-02-07 04:36:17 +00:00

26 lines
652 B
Go
Raw Normal View History

2017-08-16 23:37:37 +02:00
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
2016-07-22 23:14:13 +02:00
// See License.txt for license information.
package einterfaces
import (
"github.com/mattermost/platform/model"
)
type SamlInterface interface {
ConfigureSP() *model.AppError
BuildRequest(relayState string) (*model.SamlAuthRequest, *model.AppError)
2017-08-16 23:37:37 +02:00
DoLogin(encodedXML string, relayState map[string]string) (*model.User, *model.AppError)
2016-07-22 23:14:13 +02:00
GetMetadata() (string, *model.AppError)
}
var theSamlInterface SamlInterface
func RegisterSamlInterface(newInterface SamlInterface) {
theSamlInterface = newInterface
}
func GetSamlInterface() SamlInterface {
return theSamlInterface
}