sigstore-oidc
OpenID Connect identity provider for sigstore-rust.
Overview
This crate handles OIDC (OpenID Connect) authentication for Sigstore's keyless signing flow. It supports obtaining identity tokens from various OIDC providers, which are then used to request short-lived signing certificates from Fulcio.
Features
- OAuth 2.0 device flow: Interactive authentication via browser
- Ambient credentials: Automatic detection of CI/CD environment tokens
- Token parsing: OIDC token validation and claim extraction
- Multiple providers: Support for various identity providers
Ambient credential detection
Ambient OIDC credentials are detected in CI systems like GitHub: See ambient-id for a list of supported environments, and details for their use.
Usage
use ;
// Try ambient credentials first, fall back to interactive OAuth
let token = match detect_ambient.await? ;
Related Crates
Used by:
sigstore-sign- Obtains identity tokens for keyless signingsigstore-fulcio- Uses tokens to request certificates
License
BSD-3-Clause