-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patherrors.go
More file actions
21 lines (16 loc) · 749 Bytes
/
Copy patherrors.go
File metadata and controls
21 lines (16 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package jwit
import "errors"
// Signer errors
var (
// ErrUnknownKeyType indicates that the provided public/private key type is unknown.
ErrUnknownKeyType = errors.New("jwit: provided public/private key type is unknown")
)
// Verifier errors
var (
// ErrUnknownIssuer indicates that token is not issued by a known issuer.
ErrUnknownIssuer = errors.New("jwit: the JWT issuer is unknown")
// ErrUnexpectedSignature indicates that none of the issuer's JWK was used to sign the token.
ErrUnexpectedSignature = errors.New("jwit: the JWT wasn't signed with a known signature")
// ErrJWKSFetchFailed indicates that we got a non-2xx HTTP status whil fetching the JWKS.
ErrJWKSFetchFailed = errors.New("jwit: couldn't fetch JWKS from server")
)