1
0
mirror of https://github.com/mattermost/focalboard.git synced 2025-07-06 23:36:34 +02:00

Changing mattermost-auth method to work based on shared database access (#335)

* Improving mattermost auth implementation

* Making mattermost-auth based on shared database access

* Reverting unneeded changes in the config.json file

* Fixing tiny problems

* Removing the need of using the mattermost session token

* Fixing some bugs and allowing to not-bind the server to any port

* Small fix to correctly get the templates

* Adding the mattermost-plugin code inside focalboard repo

* Adding a not working code part of the cluster websocket communication

* Updating the mattermost version

* Adding the cluster messages for the websockets

* Updating to the new node version

* Making it compatible with S3

* Addressing some tiny problems

* Fixing server tests

* Adds support for MySQL migrations and initialization

Co-authored-by: Miguel de la Cruz <miguel@mcrx.me>
This commit is contained in:
Jesús Espino
2021-05-24 19:06:11 +02:00
committed by GitHub
parent 4c3f14e027
commit f1b8d88d6b
81 changed files with 48688 additions and 194 deletions

View File

@ -38,19 +38,16 @@ func runServer(port int) (*server.Server, error) {
UseSSL: false,
SecureCookie: true,
WebPath: "./pack",
FilesDriver: "local",
FilesPath: "./focalboard_files",
Telemetry: true,
WebhookUpdate: []string{},
Secret: "",
SessionExpireTime: 259200000000,
SessionRefreshTime: 18000,
LocalOnly: false,
EnableLocalMode: false,
LocalModeSocketLocation: "",
AuthMode: "native",
MattermostURL: "",
MattermostClientID: "",
MattermostClientSecret: "",
}, sessionToken)
if err != nil {
fmt.Println("ERROR INITIALIZING THE SERVER", err)