mirror of
https://github.com/mattermost/mattermost.git
synced 2026-09-24 16:05:00 +08:00
CSRF Token Implementation for Plugins (#9192)
deleted test config fix test config Dont wipe the session token for plugins Simplified Tokens; Generate CSRF for other sessions Remove CSRF from Access Token; Remove Getter/Setter from Context fix removed setter remove getcsrf helper from plugin api enforce csrf only for cookie auth
This commit is contained in:
committed by
Christopher Speller
parent
90e84d76ef
commit
2936dc87d0
@@ -25,6 +25,9 @@ type API interface {
|
||||
// UnregisterCommand unregisters a command previously registered via RegisterCommand.
|
||||
UnregisterCommand(teamId, trigger string) error
|
||||
|
||||
// GetSession returns the session object for the Session ID
|
||||
GetSession(sessionId string) (*model.Session, *model.AppError)
|
||||
|
||||
// GetConfig fetches the currently persisted config
|
||||
GetConfig() *model.Config
|
||||
|
||||
|
||||
Reference in New Issue
Block a user