mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
* PLT-3073: Implement SAML/Okta Server side (EE) (#3422) * PLT-3137 Support for SAML configuration * PLT-3410 SAML Database Store * PLT-3411 CLI to add Identity Provider Certificate and Service Provider Private Key * PLT-3409 SAML Interface for EE * PLT-3139 Handle SAML authentication server side * Add localization messages * PLT-3443 SAML Obtain SP metadata * PLT-3142 Login & Switch to/from SAML * Remove Certs for Database & Clean SAML Request * Make required Username, FirstName and LastName * PLT-3140 Add SAML to System Console (#3476) * PLT-3140 Add SAML to System Console * Move web_client functions to client.jsx * Fix issues found by PM * update package.json mattermost driver * Fix text messages for SAML
26 lines
644 B
Go
26 lines
644 B
Go
// 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)
|
|
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
|
|
}
|