summaryrefslogblamecommitdiffstats
path: root/vendor/github.com/mattermost/platform/einterfaces/saml.go
blob: 3e02089124ded83e35c27c3a733cf2c6722f13e6 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
                                                                   









                                                                                 
                                                                                               










                                                        
// Copyright (c) 2015-present 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)
	DoLogin(encodedXML string, relayState map[string]string) (*model.User, *model.AppError)
	GetMetadata() (string, *model.AppError)
}

var theSamlInterface SamlInterface

func RegisterSamlInterface(newInterface SamlInterface) {
	theSamlInterface = newInterface
}

func GetSamlInterface() SamlInterface {
	return theSamlInterface
}