refreshtoken

package
v3.88.12 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2025 License: AGPL-3.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrTokenExpired           = errors.New("token expired")
	ErrTenantNotFound         = errors.New("tenant not found")
	ErrClientNotFoundInTenant = errors.New("application was not found in tenant")
)

Functions

This section is empty.

Types

type Scanner

type Scanner struct {
	detectors.DefaultMultiPartCredentialProvider
	// contains filtered or unexported fields
}

func (Scanner) Description

func (s Scanner) Description() string

func (Scanner) FromData

func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results []detectors.Result, err error)

FromData will find and optionally verify Azure RefreshToken secrets in a given set of bytes.

func (Scanner) Keywords

func (s Scanner) Keywords() []string

Keywords are used for efficiently pre-filtering chunks. Use identifiers in the secret preferably, or the provider name.

func (Scanner) MaxSecretSize

func (Scanner) MaxSecretSize() int64

func (Scanner) StartOffset

func (Scanner) StartOffset() int64

func (Scanner) Type

func (s Scanner) Type() detectorspb.DetectorType

Jump to

Keyboard shortcuts

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