MCPcopy
hub / github.com/ory/kratos / NewAPIKeyStrategy

Function NewAPIKeyStrategy

request/auth.go:76–82  ·  view source on GitHub ↗
(in, name, value string)

Source from the content-addressed store, hash-verified

74}
75
76func NewAPIKeyStrategy(in, name, value string) AuthStrategy {
77 return &apiKeyStrategy{
78 in: in,
79 name: name,
80 value: value,
81 }
82}
83
84func (c *apiKeyStrategy) apply(req *retryablehttp.Request) {
85 switch c.in {

Callers 2

TestBuildRequestFunction · 0.85
authStrategyFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestBuildRequestFunction · 0.68