Compare commits

...

1 commit

Author SHA1 Message Date
max furman
7bfd43446a wip 2019-12-02 19:11:27 -05:00

View file

@ -122,7 +122,8 @@ func (p *JWK) authorizeToken(token string, audiences []string) (*jwtPayload, err
} }
if claims.Subject == "" { if claims.Subject == "" {
return nil, errors.New("token subject cannot be empty") return nil, errors.Errorf("invalid token: invalid audience claim (aud); want %s, but got %s",
audiences, claims.Audience)
} }
return &claims, nil return &claims, nil