Table of Contents

Class EnvVarTokenProvider

Namespace
Sigstore.Oidc
Assembly
Sigstore.dll

Reads an OIDC token from the SIGSTORE_ID_TOKEN environment variable.

public sealed class EnvVarTokenProvider : IOidcTokenProvider
Inheritance
EnvVarTokenProvider
Implements
Inherited Members

Properties

IsAvailable

Whether this provider can supply a token in the current environment.

public bool IsAvailable { get; }

Property Value

bool

Methods

GetTokenAsync(string, CancellationToken)

Returns an OIDC token for the specified audience.

public Task<string> GetTokenAsync(string audience, CancellationToken cancellationToken)

Parameters

audience string

OIDC audience (e.g. "sigstore").

cancellationToken CancellationToken

Cancellation token.

Returns

Task<string>