MCPcopy Create free account
hub / github.com/cloudflare/cfssl / NewAuthServer

Function NewAuthServer

api/client/client.go:320–325  ·  view source on GitHub ↗

NewAuthServer sets up a new auth server target with an addr in the same format at NewServer and a default authentication provider to use for Sign requests.

(addr string, tlsConfig *tls.Config, provider auth.Provider)

Source from the content-addressed store, hash-verified

318// in the same format at NewServer and a default authentication provider to
319// use for Sign requests.
320func NewAuthServer(addr string, tlsConfig *tls.Config, provider auth.Provider) *AuthRemote {
321 return &AuthRemote{
322 Remote: NewServerTLS(addr, tlsConfig),
323 provider: provider,
324 }
325}
326
327// Sign is overloaded to perform an AuthSign request using the default auth provider.
328func (ar *AuthRemote) Sign(req []byte) ([]byte, error) {

Callers 1

TestDefaultAuthSignFunction · 0.85

Calls 1

NewServerTLSFunction · 0.85

Tested by 1

TestDefaultAuthSignFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…