MCPcopy
hub / github.com/grafana/tempo / constructAuthToken

Function constructAuthToken

cmd/tempo-vulture/validation.go:89–95  ·  view source on GitHub ↗

constructAuthToken creates base64(orgID:accessToken) if both are provided

(orgID, accessToken string)

Source from the content-addressed store, hash-verified

87
88// constructAuthToken creates base64(orgID:accessToken) if both are provided
89func constructAuthToken(orgID, accessToken string) string {
90 if orgID == "" || accessToken == "" {
91 return ""
92 }
93 combined := fmt.Sprintf("%s:%s", orgID, accessToken)
94 return base64.StdEncoding.EncodeToString([]byte(combined))
95}
96
97type traceInfo struct {
98 id string

Callers 1

RunValidationModeFunction · 0.85

Calls 1

EncodeToStringMethod · 0.80

Tested by

no test coverage detected