MCPcopy Create free account
hub / github.com/goadesign/goa / APIKeyScheme

Struct APIKeyScheme

security/scheme.go:35–43  ·  view source on GitHub ↗

APIKeyScheme represents the API key security scheme. It consists of a key which is used in authentication.

Source from the content-addressed store, hash-verified

33 // APIKeyScheme represents the API key security scheme.
34 // It consists of a key which is used in authentication.
35 APIKeyScheme struct {
36 // Name is the scheme name defined in the design.
37 Name string
38 // Scopes holds a list of scopes for the scheme.
39 Scopes []string
40 // RequiredScopes holds a list of scopes which are required
41 // by the scheme. It is a subset of Scopes field.
42 RequiredScopes []string
43 }
44
45 // BearerScheme represents an HTTP Bearer security scheme.
46 // It consists of a raw bearer token which is used in authentication.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected