Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/openai/openai-go
/ GetToken
Method
GetToken
auth/types.go:21–21 ·
view source on GitHub ↗
(ctx context.Context, httpClient HTTPDoer)
Source
from the content-addressed store, hash-verified
19
type
SubjectTokenProvider
interface
{
20
TokenType() SubjectTokenType
21
GetToken(ctx context.Context, httpClient HTTPDoer) (string, error)
22
}
23
24
type
WorkloadIdentity
struct
{
Callers
12
TestK8sProviderFileReading
Function · 0.65
TestK8sProviderDefaultPath
Function · 0.65
TestK8sProviderErrorHandling
Function · 0.65
TestK8sProviderEmptyToken
Function · 0.65
TestAzureProviderGetToken
Function · 0.65
TestAzureProviderCustomResource
Function · 0.65
TestGCPProviderCustomAudience
Function · 0.65
TestAzureProviderNilConfigBackwardCompatibility
Function · 0.65
TestGCPProviderNilConfigBackwardCompatibility
Function · 0.65
TestAzureProviderResourceURLEncoding
Function · 0.65
WorkloadIdentityMiddleware
Function · 0.65
refreshToken
Method · 0.65
Implementers
5
mockSubjectTokenProvider
auth_test.go
k8sServiceAccountTokenProvider
auth/subjecttokenprovider.go
azureManagedIdentityTokenProvider
auth/subjecttokenprovider.go
gcpIDTokenProvider
auth/subjecttokenprovider.go
mockProvider
auth/workloadidentity_test.go
Calls
no outgoing calls
Tested by
10
TestK8sProviderFileReading
Function · 0.52
TestK8sProviderDefaultPath
Function · 0.52
TestK8sProviderErrorHandling
Function · 0.52
TestK8sProviderEmptyToken
Function · 0.52
TestAzureProviderGetToken
Function · 0.52
TestAzureProviderCustomResource
Function · 0.52
TestGCPProviderCustomAudience
Function · 0.52
TestAzureProviderNilConfigBackwardCompatibility
Function · 0.52
TestGCPProviderNilConfigBackwardCompatibility
Function · 0.52
TestAzureProviderResourceURLEncoding
Function · 0.52