mirror of
https://github.com/ferdzo/fs.git
synced 2026-04-05 08:46:24 +00:00
Initial working authentication with SigV4
This commit is contained in:
19
auth/errors.go
Normal file
19
auth/errors.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package auth
|
||||
|
||||
import "errors"
|
||||
|
||||
var (
|
||||
ErrAccessDenied = errors.New("access denied")
|
||||
ErrInvalidAccessKeyID = errors.New("invalid access key id")
|
||||
ErrSignatureDoesNotMatch = errors.New("signature does not match")
|
||||
ErrAuthorizationHeaderMalformed = errors.New("authorization header malformed")
|
||||
ErrRequestTimeTooSkewed = errors.New("request time too skewed")
|
||||
ErrExpiredToken = errors.New("expired token")
|
||||
ErrCredentialDisabled = errors.New("credential disabled")
|
||||
ErrAuthNotEnabled = errors.New("authentication is not enabled")
|
||||
ErrMasterKeyRequired = errors.New("auth master key is required")
|
||||
ErrInvalidMasterKey = errors.New("invalid auth master key")
|
||||
ErrNoAuthCredentials = errors.New("no auth credentials found")
|
||||
ErrUnsupportedAuthScheme = errors.New("unsupported auth scheme")
|
||||
ErrInvalidPresign = errors.New("invalid presigned request")
|
||||
)
|
||||
Reference in New Issue
Block a user