2017-04-12 08:27:57 -04:00
|
|
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
2019-11-29 06:59:40 -05:00
|
|
|
// See LICENSE.txt for license information.
|
2016-07-05 15:49:00 -04:00
|
|
|
|
|
|
|
|
package einterfaces
|
|
|
|
|
|
|
|
|
|
import (
|
2025-03-13 12:00:15 -04:00
|
|
|
saml2 "github.com/mattermost/gosaml2"
|
2023-06-11 01:24:35 -04:00
|
|
|
"github.com/mattermost/mattermost/server/public/model"
|
2023-09-05 03:47:30 -04:00
|
|
|
"github.com/mattermost/mattermost/server/public/shared/request"
|
2016-07-05 15:49:00 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type SamlInterface interface {
|
2025-09-10 09:11:32 -04:00
|
|
|
ConfigureSP(rctx request.CTX) error
|
|
|
|
|
BuildRequest(rctx request.CTX, relayState string) (*model.SamlAuthRequest, *model.AppError)
|
|
|
|
|
DoLogin(rctx request.CTX, encodedXML string, relayState map[string]string) (*model.User, *saml2.AssertionInfo, *model.AppError)
|
|
|
|
|
GetMetadata(rctx request.CTX) (string, *model.AppError)
|
|
|
|
|
CheckProviderAttributes(rctx request.CTX, SS *model.SamlSettings, ouser *model.User, patch *model.UserPatch) string
|
2016-07-05 15:49:00 -04:00
|
|
|
}
|