Add saml private key to gitignore, remove unused constants (#27391)

Этот коммит содержится в:
enzowritescode
2024-06-19 10:03:28 -06:00
коммит произвёл GitHub
родитель 7d06ac8812
Коммит a624c6dc87
3 изменённых файлов: 2 добавлений и 8 удалений

1
server/.gitignore поставляемый
Просмотреть файл

@@ -12,6 +12,7 @@ mattermost.mattermost-license
config/mattermost.mattermost-license
config/config.json
config/*.crt
config/*.key
web/static/js/bundle*.js
web/static/js/bundle*.js.map

Просмотреть файл

@@ -5,7 +5,6 @@ package app
import (
"net/http"
"time"
"github.com/golang-jwt/jwt/v5"
"github.com/pkg/errors"
@@ -14,10 +13,6 @@ import (
"github.com/mattermost/mattermost/server/v8/channels/store"
)
const (
JWTDefaultTokenExpiration = 7 * 24 * time.Hour // 7 days of expiration
)
func (ch *Channels) License() *model.License {
return ch.srv.License()
}

Просмотреть файл

@@ -9,7 +9,6 @@ import (
"fmt"
"net/http"
"os"
"time"
"github.com/golang-jwt/jwt/v5"
"github.com/pkg/errors"
@@ -24,8 +23,7 @@ import (
)
const (
LicenseEnv = "MM_LICENSE"
JWTDefaultTokenExpiration = 7 * 24 * time.Hour // 7 days of expiration
LicenseEnv = "MM_LICENSE"
)
// JWTClaims custom JWT claims with the needed information for the