Documentation ¶
Overview ¶
Package aehcl provides service-to-service authentication in Google App Engine.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchIDToken ¶
FetchIDToken returns identity token from metadata API.
func Transport ¶
func Transport(base http.RoundTripper, opts ...Option) http.RoundTripper
Transport is an implementation of http.RoundTripper for service-to-service authentication. When required service-to-service authentication, create http.Client using this transport.
Default RoundTripper is http.DefaultTransport, and FetchIDToken is assigned as default option.
Types ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option is interface that sets transport option required service-to-service authentication.
func WithTokenSource ¶
func WithTokenSource(ts TokenSource) Option
WithTokenSource sets token source required service-to-service authentication to transport option.
type TokenSource ¶
TokenSource is function that returns token required service-to-service authentication in App Engine.