azurefederated

package
v0.24.1 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package azurefederated package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Subject  string `json:"subject"`
	ClientID string `json:"clientId"`
	TenantID string `json:"tenantId"`
}

Data contains the data fields specific to this managed identity type

type Delegate

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

Delegate for the Azure OIDC Federated managed identity type

func New

func New(_ context.Context, jwsProvider jws.Provider, issuerURL string) (*Delegate, error)

New creates a new Delegate instance

func (*Delegate) CreateCredentials

func (d *Delegate) CreateCredentials(ctx context.Context, identity *models.ManagedIdentity, job *models.Job) ([]byte, error)

CreateCredentials returns a signed JWT token for the managed identity

func (*Delegate) SetManagedIdentityData

func (d *Delegate) SetManagedIdentityData(_ context.Context, managedIdentity *models.ManagedIdentity, input []byte) error

SetManagedIdentityData updates the managed identity custom data payload

type InputData

type InputData struct {
	ClientID string `json:"clientId"`
	TenantID string `json:"tenantId"`
}

InputData contains the input data fields specific to this managed identity type

Jump to

Keyboard shortcuts

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