mirror of
https://github.com/pgsty/minio.git
synced 2026-07-23 22:16:15 +03:00
allow JWT parsing on large session policy based tokens (#17167)
This commit is contained in:
+1
-1
@@ -238,7 +238,7 @@ func (sts *stsAPIHandlers) AssumeRole(w http.ResponseWriter, r *http.Request) {
|
||||
// The plain text that you use for both inline and managed session
|
||||
// policies shouldn't exceed 2048 characters.
|
||||
if len(sessionPolicyStr) > 2048 {
|
||||
writeSTSErrorResponse(ctx, w, ErrSTSInvalidParameterValue, fmt.Errorf("Session policy shouldn't exceed 2048 characters"))
|
||||
writeSTSErrorResponse(ctx, w, ErrSTSInvalidParameterValue, errSessionPolicyTooLarge)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user