auth

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 0 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientCertProvider

type ClientCertProvider interface {
	// FileName returns file name of certificate.
	FileName() string
}

ClientCertProvider is implementation for client certificate provider Responsible for preparing, providing and disposing client certificate file. Basic implementation assumes the file exists in the file system and does not take responsibility of deleting this sensitive information after use.

type TokenProvider

type TokenProvider interface {
	// GetToken gets a JWT, parameter refreshToken indicats whether a new token value is to be retrieved.
	GetToken(refreshToken bool) (string, error)
	// GetHeaderValue gets token value from a JWT, the value format likes "Bearer %s".
	HeaderValue(token string) string
}

TokenProvider provides token.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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