Documentation
¶
Overview ¶
Package askpass is designed to be used in the askpass sidecar to provide GSA authentication services.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { Email string CredentialProvider auth.CredentialProvider }
Server contains server wide state and settings for the askpass sidecar
func (*Server) GitAskPassHandler ¶
func (aps *Server) GitAskPassHandler(w http.ResponseWriter, r *http.Request)
GitAskPassHandler handles credential requests, fetching a valid auth token from the credential manager and writing it to the response.
The underlying Credentials abstraction handles caching the auth token until it expires, minus the EarlyTokenRefresh duration.
Click to show internal directories.
Click to hide internal directories.