1
This commit is contained in:
16
internal/auth/keycloak/errors.go
Normal file
16
internal/auth/keycloak/errors.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package keycloak
|
||||
|
||||
import "errors"
|
||||
|
||||
var (
|
||||
ErrInvalidToken = errors.New("invalid token")
|
||||
ErrInternal = errors.New("internal error")
|
||||
ErrRealmClientNotFound = errors.New("realm client not found")
|
||||
ErrRealmClientUnauthorized = errors.New("realm client unauthorized")
|
||||
ErrUnknownUserType = errors.New("unknown user type")
|
||||
ErrNoAttributes = errors.New("no attributes")
|
||||
ErrAlreadyExists = errors.New("user already exists")
|
||||
ErrBadRequest = errors.New("bad request")
|
||||
ErrNotFound = errors.New("user not found")
|
||||
ErrMissingPermission = errors.New("missing one or more permissions")
|
||||
)
|
Reference in New Issue
Block a user