mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-02-03 13:00:52 +08:00
- Replaced legacy `api-keys` field with `auth.providers` in configuration, supporting multiple authentication providers including `config-api-key`. - Added synchronization to maintain compatibility with legacy `api-keys`. - Updated core components like request handling and middleware to use the new provider system. - Enhanced management API endpoints for seamless integration with `auth.providers`.
13 lines
457 B
Go
13 lines
457 B
Go
package access
|
|
|
|
import "errors"
|
|
|
|
var (
|
|
// ErrNoCredentials indicates no recognizable credentials were supplied.
|
|
ErrNoCredentials = errors.New("access: no credentials provided")
|
|
// ErrInvalidCredential signals that supplied credentials were rejected by a provider.
|
|
ErrInvalidCredential = errors.New("access: invalid credential")
|
|
// ErrNotHandled tells the manager to continue trying other providers.
|
|
ErrNotHandled = errors.New("access: not handled")
|
|
)
|