mirror of
https://github.com/pgsty/minio.git
synced 2026-07-20 12:40:24 +03:00
allow MINIO_STS_DURATION to increase the IDP token expiration (#18396)
Share link duration is based on the IDP token expiration, for the share link to last longer, you may now use MINIO_STS_DURATION environment variable.
This commit is contained in:
@@ -83,3 +83,11 @@ const (
|
||||
EnvRegion = "MINIO_REGION" // legacy
|
||||
EnvRegionName = "MINIO_REGION_NAME" // legacy
|
||||
)
|
||||
|
||||
// Expiration Token durations
|
||||
// These values are used to validate the expiration time range from
|
||||
// either the exp claim or MINI_STS_DURATION value
|
||||
const (
|
||||
MinExpiration = 900
|
||||
MaxExpiration = 31536000
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user