Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeBasicAuth ¶
EncodeBasicAuth generates a Basic Authentication header value using the provided username and password according to RFC 7617. It formats the authString as "username:password", encodes it in base64, and returns the Basic Auth header in the format "Basic <base64EncodedString>".
Types ¶
type BasicAuth ¶
BasicAuth is an implementation of grpc.PerRPCCredentials based on the Basic HTTP Authentication Schema.
func (*BasicAuth) GetRequestMetadata ¶
GetRequestMetadata gets the request metadata as a map of strings.
func (*BasicAuth) RequireTransportSecurity ¶
RequireTransportSecurity indicates whether the credentials requires transport security.
Click to show internal directories.
Click to hide internal directories.