matterbridge/vendor/github.com/mattermost/platform/einterfaces/saml.go

26 lines
660 B
Go
Raw Normal View History

2016-07-22 14:14:13 -07:00
// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved.
// 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-03-25 13:04:10 -07:00
DoLogin(encodedXML string, relayState map[string]string, siteURL string) (*model.User, *model.AppError)
2016-07-22 14:14:13 -07:00
GetMetadata() (string, *model.AppError)
}
var theSamlInterface SamlInterface
func RegisterSamlInterface(newInterface SamlInterface) {
theSamlInterface = newInterface
}
func GetSamlInterface() SamlInterface {
return theSamlInterface
}