mirror of
https://github.com/pgsty/minio.git
synced 2026-07-15 16:30:29 +03:00
move credentials as separate package (#5115)
This commit is contained in:
+2
-1
@@ -24,6 +24,7 @@ import (
|
||||
|
||||
jwtgo "github.com/dgrijalva/jwt-go"
|
||||
jwtreq "github.com/dgrijalva/jwt-go/request"
|
||||
"github.com/minio/minio/pkg/auth"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -47,7 +48,7 @@ var (
|
||||
)
|
||||
|
||||
func authenticateJWT(accessKey, secretKey string, expiry time.Duration) (string, error) {
|
||||
passedCredential, err := createCredential(accessKey, secretKey)
|
||||
passedCredential, err := auth.CreateCredentials(accessKey, secretKey)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user