Skip to content

Commit 032c0ab

Browse files
committed
Fixed name.
1 parent 602c741 commit 032c0ab

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

modules/auth/oauth2/jwtsigningkey.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,35 +48,35 @@ type JWTSigningKey interface {
4848
PreProcessToken(*jwt.Token)
4949
}
5050

51-
type hmacSingingKey struct {
51+
type hmacSigningKey struct {
5252
signingMethod jwt.SigningMethod
5353
secret []byte
5454
}
5555

56-
func (key hmacSingingKey) IsSymmetric() bool {
56+
func (key hmacSigningKey) IsSymmetric() bool {
5757
return true
5858
}
5959

60-
func (key hmacSingingKey) SigningMethod() jwt.SigningMethod {
60+
func (key hmacSigningKey) SigningMethod() jwt.SigningMethod {
6161
return key.signingMethod
6262
}
6363

64-
func (key hmacSingingKey) SignKey() interface{} {
64+
func (key hmacSigningKey) SignKey() interface{} {
6565
return key.secret
6666
}
6767

68-
func (key hmacSingingKey) VerifyKey() interface{} {
68+
func (key hmacSigningKey) VerifyKey() interface{} {
6969
return key.secret
7070
}
7171

72-
func (key hmacSingingKey) ToJWK() (map[string]string, error) {
72+
func (key hmacSigningKey) ToJWK() (map[string]string, error) {
7373
return map[string]string{
7474
"kty": "oct",
7575
"alg": key.SigningMethod().Alg(),
7676
}, nil
7777
}
7878

79-
func (key hmacSingingKey) PreProcessToken(*jwt.Token) {}
79+
func (key hmacSigningKey) PreProcessToken(*jwt.Token) {}
8080

8181
type rsaSingingKey struct {
8282
signingMethod jwt.SigningMethod
@@ -240,7 +240,7 @@ func CreateJWTSingingKey(algorithm string, key interface{}) (JWTSigningKey, erro
240240
if !ok {
241241
return nil, jwt.ErrInvalidKeyType
242242
}
243-
return hmacSingingKey{signingMethod, secret}, nil
243+
return hmacSigningKey{signingMethod, secret}, nil
244244
}
245245
}
246246

0 commit comments

Comments
 (0)