MCPcopy Create free account
hub / github.com/chartmuseum/auth / generateBasicAuthHeader

Function generateBasicAuthHeader

util.go:43–47  ·  view source on GitHub ↗
(username string, password string)

Source from the content-addressed store, hash-verified

41}
42
43func generateBasicAuthHeader(username string, password string) string {
44 base := username + ":" + password
45 basicAuthHeader := "Basic " + base64.StdEncoding.EncodeToString([]byte(base))
46 return basicAuthHeader
47}
48
49func generatePublicKey(publicKeyPath string, publicKey []byte) (*rsa.PublicKey, error) {
50 pem, err := getPemFromPathOrKey(publicKeyPath, publicKey)

Callers 2

SetupSuiteMethod · 0.85
NewAuthorizerFunction · 0.85

Calls

no outgoing calls

Tested by 1

SetupSuiteMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…