twofa

package
v1.15.5 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: Apache-2.0 Imports: 26 Imported by: 1

Documentation

Overview

Package twofa contains routines for getting short lived certificate.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Duration of generated cert. Default 16 hours.
	Duration = flag.Duration("duration", 16*time.Hour, "Duration of the requested certificates in golang duration format (ex: 30s, 5m, 12h)")
)

Functions

func AuthenticateToTargetUrls added in v1.9.1

func AuthenticateToTargetUrls(
	userName string,
	password []byte,
	targetUrls []string,
	skip2fa bool,
	client *http.Client,
	userAgentString string,
	logger log.DebugLogger) (baseUrl string, err error)

AuthenticateToTargetUrls does an authentication to the keymasted server it performs 2fa if needed using the server side specified methods it assumes the http client has a valid cookiejar

func DoCertRequest added in v1.9.1

func DoCertRequest(signer crypto.Signer, client *http.Client, userName string,
	baseUrl,
	certType string,
	addGroups bool,
	userAgentString string, logger log.DebugLogger) ([]byte, error)

After a client has authenticated it can call DoCertRequest for the appropiate type

Types

This section is empty.

Directories

Path Synopsis
Package vip does two factor authentication with Symantec VIP or Okta
Package vip does two factor authentication with Symantec VIP or Okta
Package twofa contains routines for getting short lived certificate.
Package twofa contains routines for getting short lived certificate.
Package twofa contains routines for getting short lived certificate.
Package twofa contains routines for getting short lived certificate.

Jump to

Keyboard shortcuts

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