mirror of
https://github.com/minio/minio.git
synced 2025-11-07 21:02:58 -05:00
allow JWT parsing on large session policy based tokens (#17167)
This commit is contained in:
@@ -34,6 +34,7 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/buger/jsonparser"
|
||||
"github.com/dustin/go-humanize"
|
||||
jwtgo "github.com/golang-jwt/jwt/v4"
|
||||
jsoniter "github.com/json-iterator/go"
|
||||
)
|
||||
@@ -53,7 +54,7 @@ var (
|
||||
SigningMethodHS512 *SigningMethodHMAC
|
||||
)
|
||||
|
||||
const base64BufferSize = 8192
|
||||
const base64BufferSize = 64 * humanize.KiByte
|
||||
|
||||
var (
|
||||
base64BufPool sync.Pool
|
||||
|
||||
Reference in New Issue
Block a user