mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-18 07:14:03 +02:00
9 lines
262 B
Go
9 lines
262 B
Go
package cti
|
|
|
|
import (
|
|
"github.com/deepmap/oapi-codegen/pkg/securityprovider"
|
|
)
|
|
|
|
func NewAPIKeyProvider(apiKey string) (*securityprovider.SecurityProviderApiKey, error) {
|
|
return securityprovider.NewSecurityProviderApiKey("header", "x-api-key", apiKey)
|
|
}
|