mirror of https://github.com/goharbor/harbor.git
Fix token service returning empty token on tls certificate issue without any error
Signed-off-by: Dee Kryvenko <dee@selfcloud.tech>
This commit is contained in:
parent
d25f3556a9
commit
22e580a463
|
@ -50,7 +50,7 @@ func New(opt *Options, claims jwt.Claims) (*Token, error) {
|
|||
func (tk *Token) Raw() (string, error) {
|
||||
key, err := tk.Opt.GetKey()
|
||||
if err != nil {
|
||||
return "", nil
|
||||
return "", err
|
||||
}
|
||||
raw, err := tk.Token.SignedString(key)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue