[MM-63421] add openID Authorization API-compliant PDP interface (#30462)

Этот коммит содержится в:
Ibrahim Serdar Acikgoz
2025-04-02 11:04:27 +02:00
коммит произвёл GitHub
родитель f8e16780ef
Коммит 3eb854c58d
5 изменённых файлов: 133 добавлений и 0 удалений

16
server/einterfaces/pdp.go Обычный файл
Просмотреть файл

@@ -0,0 +1,16 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
package einterfaces
import (
"github.com/mattermost/mattermost/server/public/model"
"github.com/mattermost/mattermost/server/public/shared/request"
)
// PolicyDecisionPointInterface is the service that evaluates access requests
// using the OpenID Auth API spec. It determines whether a subject can perform
// an action on a resource based on the resource policy.
type PolicyDecisionPointInterface interface {
AccessEvaluation(rctx request.CTX, accessRequest model.AccessRequest) (*model.AccessDecision, *model.AppError)
}