mirror of
https://github.com/minio/minio.git
synced 2025-11-09 13:39:46 -05:00
Fix Access Key requests (#11979)
Fix accessing claims when auth error is unchecked. Only replaced when unchecked and when clearly without side effects. Fixes #11959
This commit is contained in:
committed by
Harshavardhana
parent
e3da59c923
commit
f687ba53bc
@@ -81,6 +81,15 @@ type MapClaims struct {
|
||||
jwtgo.MapClaims
|
||||
}
|
||||
|
||||
// GetAccessKey will return the access key.
|
||||
// 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{}
|
||||
|
||||
Reference in New Issue
Block a user