oauth

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package oauth contains the OAuth management logic for ToolHive.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateUniqueSecretNameWithProvider

func GenerateUniqueSecretNameWithProvider(workloadName string, secretManager secrets.Provider) (string, error)

GenerateUniqueSecretNameWithProvider generates a unique secret name using the provided secret manager This version is testable with dependency injection

func ProcessOAuthClientSecret

func ProcessOAuthClientSecret(workloadName, clientSecret string) (string, error)

ProcessOAuthClientSecret processes an OAuth client secret, converting plain text to CLI format if needed

func ProcessOAuthClientSecretWithProvider

func ProcessOAuthClientSecretWithProvider(workloadName, clientSecret string, secretManager secrets.Provider) (string, error)

ProcessOAuthClientSecretWithProvider processes an OAuth client secret using the provided secret manager This version is testable with dependency injection

func StoreSecretInManager

func StoreSecretInManager(ctx context.Context, secretName, secretValue string) error

StoreSecretInManager stores a secret in the configured secret manager

func StoreSecretInManagerWithProvider

func StoreSecretInManagerWithProvider(ctx context.Context, secretName, secretValue string, secretManager secrets.Provider) error

StoreSecretInManagerWithProvider stores a secret using the provided secret manager This version is testable with dependency injection

Types

This section is empty.

Jump to

Keyboard shortcuts

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