api

package
v0.79.0-devel Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package api provides the configuration and implementation for exchanging a delegated auth proof for an API key

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAPIKey

func GetAPIKey(cfg pkgconfigmodel.Reader, delegatedAuthProof string) (*string, error)

GetAPIKey performs the cloud auth exchange and returns an API key. The delegatedAuthProof contains the signed AWS request which includes the org id.

Types

type TokenAttributes

type TokenAttributes struct {
	APIKey string `json:"api_key"`
}

TokenAttributes represents the attributes field containing the API key

type TokenData

type TokenData struct {
	Attributes TokenAttributes `json:"attributes"`
}

TokenData represents the data field in the token response

type TokenResponse

type TokenResponse struct {
	Data TokenData `json:"data"`
}

TokenResponse represents the response from the intake-key endpoint

Directories

Path Synopsis
cloudauth
config
Package config provides the config for specific delegated auth exchanges
Package config provides the config for specific delegated auth exchanges
aws module

Jump to

Keyboard shortcuts

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