MCPcopy Create free account
hub / github.com/astercloud/aster / NewAPIKeyAuthenticator

Function NewAPIKeyAuthenticator

server/auth/apikey.go:45–49  ·  view source on GitHub ↗

NewAPIKeyAuthenticator 创建 API Key 认证器

(store APIKeyStore)

Source from the content-addressed store, hash-verified

43
44// NewAPIKeyAuthenticator 创建 API Key 认证器
45func NewAPIKeyAuthenticator(store APIKeyStore) *APIKeyAuthenticator {
46 return &APIKeyAuthenticator{
47 store: store,
48 }
49}
50
51// Method 返回认证方法类型
52func (a *APIKeyAuthenticator) Method() AuthMethod {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected