-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.go
More file actions
23 lines (16 loc) · 939 Bytes
/
errors.go
File metadata and controls
23 lines (16 loc) · 939 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package authkit
import "errors"
var (
// ErrUnauthenticated indicates that no request credential authenticated successfully.
ErrUnauthenticated = errors.New("authkit: unauthenticated")
// ErrUnresolvedIdentity indicates that a valid credential has no linked principal.
ErrUnresolvedIdentity = errors.New("authkit: unresolved identity")
// ErrUnauthorized indicates that a resolved principal is not allowed to perform an action.
ErrUnauthorized = errors.New("authkit: unauthorized")
// ErrInternal indicates an auth pipeline failure that should be treated as internal.
ErrInternal = errors.New("authkit: internal failure")
// ErrProvisioningRuleNotFound indicates that a provisioning rule does not exist.
ErrProvisioningRuleNotFound = errors.New("authkit: provisioning rule not found")
// ErrPrincipalNotFound indicates that a principal does not exist.
ErrPrincipalNotFound = errors.New("authkit: principal not found")
)