askpass

package
v1.20.2-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL