Added Color customization to embedded object browser (#2246)

Signed-off-by: Benjamin Perez <benjamin@bexsoft.net>
This commit is contained in:
Alex
2022-08-17 11:06:10 -05:00
committed by GitHub
parent 697910c7b2
commit 7036d1328e
24 changed files with 512 additions and 142 deletions

View File

@@ -68,6 +68,7 @@ type TokenClaims struct {
AccountAccessKey string `json:"accountAccessKey,omitempty"`
HideMenu bool `json:"hm,omitempty"`
ObjectBrowser bool `json:"ob,omitempty"`
CustomStyleOB string `json:"customStyleOb,omitempty"`
}
// STSClaims claims struct for STS Token
@@ -79,6 +80,7 @@ type STSClaims struct {
type SessionFeatures struct {
HideMenu bool
ObjectBrowser bool
CustomStyleOB string
}
// SessionTokenAuthenticate takes a session token, decode it, extract claims and validate the signature
@@ -123,7 +125,9 @@ func NewEncryptedTokenForClient(credentials *credentials.Value, accountAccessKey
if features != nil {
tokenClaims.HideMenu = features.HideMenu
tokenClaims.ObjectBrowser = features.ObjectBrowser
tokenClaims.CustomStyleOB = features.CustomStyleOB
}
encryptedClaims, err := encryptClaims(tokenClaims)
if err != nil {
return "", err