Table of Contents

Interface IOidcTokenProvider

Namespace
Sigstore.Oidc
Assembly
Sigstore.dll

Provides OIDC tokens for Sigstore keyless signing.

public interface IOidcTokenProvider

Properties

IsAvailable

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

bool IsAvailable { get; }

Property Value

bool

Methods

GetTokenAsync(string, CancellationToken)

Returns an OIDC token for the specified audience.

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

Parameters

audience string

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

cancellationToken CancellationToken

Cancellation token.

Returns

Task<string>