feature: Renamed authJwtSecret to authJwtHmacSecret (#271)

* feature: Renamed authJwtSecret to authJwtHmacSecret

* feature: rename authJwtSecret
This commit is contained in:
James Read 2024-04-15 01:01:30 +01:00 committed by GitHub
parent 8341b1d6d0
commit 43c48aef17
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -93,7 +93,7 @@ type Config struct {
AuthJwtAud string
AuthJwtDomain string
AuthJwtCertsURL string
AuthJwtSecret string // mutually exclusive with pub key config fields
AuthJwtHmacSecret string // mutually exclusive with pub key config fields
AuthJwtClaimUsername string
AuthJwtClaimUserGroup string
AuthJwtPubKeyPath string // will read pub key from file on disk

View File

@ -90,7 +90,7 @@ func parseJwtTokenWithHMAC(jwtString string) (*jwt.Token, error) {
return nil, fmt.Errorf("parseJwt expected token algorithm HMAC but got: %v", token.Header["alg"])
}
return []byte(cfg.AuthJwtSecret), nil
return []byte(cfg.AuthJwtHmacSecret), nil
})
}