File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import (
22
22
"crypto/sha1"
23
23
"strings"
24
24
25
- "github.com/minio/console/pkg/auth/utils "
25
+ "github.com/minio/console/pkg/auth/token "
26
26
"github.com/minio/pkg/env"
27
27
"golang.org/x/crypto/pbkdf2"
28
28
)
@@ -86,18 +86,14 @@ func IsIDPEnabled() bool {
86
86
GetIDPClientID () != ""
87
87
}
88
88
89
- var defaultPassphraseForIDPHmac = utils .RandomCharString (64 )
90
-
91
89
// GetPassphraseForIDPHmac returns passphrase for the pbkdf2 function used to sign the oauth2 state parameter
92
90
func getPassphraseForIDPHmac () string {
93
- return env .Get (ConsoleIDPHmacPassphrase , defaultPassphraseForIDPHmac )
91
+ return env .Get (ConsoleIDPHmacPassphrase , token . GetPBKDFPassphrase () )
94
92
}
95
93
96
- var defaultSaltForIDPHmac = utils .RandomCharString (64 )
97
-
98
94
// GetSaltForIDPHmac returns salt for the pbkdf2 function used to sign the oauth2 state parameter
99
95
func getSaltForIDPHmac () string {
100
- return env .Get (ConsoleIDPHmacSalt , defaultSaltForIDPHmac )
96
+ return env .Get (ConsoleIDPHmacSalt , token . GetPBKDFSalt () )
101
97
}
102
98
103
99
// getIDPScopes return default scopes during the IDP login request
You can’t perform that action at this time.
0 commit comments