Skip to main content

Crate greentic_oauth_host

Crate greentic_oauth_host 

Source
Expand description

Host-facing helpers for the greentic:oauth-broker@1.0.0 world.

This crate intentionally keeps host-specific wiring (Wasmtime linker helpers) separate from the core logic used by downstream Rust crates.

Modules§

linker
Canonical Wasmtime linker exports for the oauth-broker world.

Structs§

OauthBrokerHost
Wrapper holding an OAuth broker client and exposing convenience helpers.

Traits§

OAuthBroker
Trait abstracting broker communication for testability.

Functions§

request_distributor_token
Request a token for a distributor endpoint.
request_git_token
Request a Git provider token for a repo.
request_oci_token
Request an OCI registry token.
request_repo_token
Request a token tied to a repo (Store-facing convenience).
request_scanner_token
Request a scanner token.