- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for NewStandardClaims (0.09 sec)
-
internal/jwt/parser.go
// If nil an empty string will be returned. func (c *MapClaims) GetAccessKey() string { if c == nil { return "" } return c.AccessKey } // NewStandardClaims - initializes standard claims func NewStandardClaims() *StandardClaims { return &StandardClaims{} } // SetIssuer sets issuer for these claims func (c *StandardClaims) SetIssuer(issuer string) { c.Issuer = issuer }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Sep 17 16:45:46 UTC 2024 - 14.1K bytes - Viewed (0) -
cmd/storage-rest-server.go
const DefaultSkewTime = 15 * time.Minute // validateStorageRequestToken will validate the token against the provided audience. func validateStorageRequestToken(token string) error { claims := xjwt.NewStandardClaims() if err := xjwt.ParseWithStandardClaims(token, claims, []byte(globalActiveCred.SecretKey)); err != nil { return errAuthentication }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Aug 14 17:11:51 UTC 2024 - 45.7K bytes - Viewed (0)