credential

package module
v0.0.0-...-00d2d94 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ISO8601 = "2006-01-02T15:04:05-0700"
	RFC3339 = "2006-01-02T15:04:05Z07:00"
)
View Source
const (
	TOKEN_TYPE_OIDC        string = "OIDC"
	TOKEN_TYPE_UNSPECIFIED string = "UNSPECIFIED"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EKMAZCredential

type EKMAZCredential struct {
	// contains filtered or unexported fields
}

func NewEKMAZCredentials

func NewEKMAZCredentials(options *EKMAZCredentialOptions) (*EKMAZCredential, error)

func (*EKMAZCredential) GetToken

type EKMAZCredentialOptions

type EKMAZCredentialOptions struct {
	azcore.ClientOptions
	ClientID string
	Audience string
	TenantID string

	STSEndpointHost      string
	STSEndpoint          string
	STSSNI               string
	AttestationTokenPath string
	UseMTLS              bool
	TrustCA              string
	ClientCert           string
	ClientKey            string
	Scope                string
	SendCertificateChain bool
}

type TokenResponse

type TokenResponse struct {
	AccessToken  string `json:"access_token"`
	TokenType    string `json:"token_type,omitempty"`
	ExpiresIn    int64  `json:"expires_in,omitempty"`
	ExtExpiresIn int64  `json:"ext_expires_in,omitempty"`
}

Jump to

Keyboard shortcuts

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