Skip to main content

Crate greentic_oauth_sdk

Crate greentic_oauth_sdk 

Source

Modules§

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

Structs§

AccessToken
Narrow access token view returned by the broker helpers.
Client
High-level client for interacting with the OAuth broker.
ClientConfig
Configuration parameters for establishing a broker client.
FlowResult
Result emitted when the broker completes an OAuth flow.
InitiateAuthRequest
Request parameters for initiating an OAuth flow.
InitiateAuthResponse
Result of initiating an OAuth flow.
Method
The Request Method (VERB)
OauthBrokerHost
Wrapper holding an OAuth broker client and exposing convenience helpers.
SignedFetchRequest
Parameters for issuing a signed fetch request.
SignedFetchResponse
Response returned from a signed fetch invocation.
TokenValidationConfig
Configuration for bearer token validation.
ValidatedClaims
Claims extracted from a validated bearer token.

Enums§

OAuthError
Shared OAuth error surface for high-level broker helpers.
OwnerKind
Owner classification for initiating flows.
SdkError
Errors emitted by the OAuth SDK client.
Visibility
Visibility scope for stored connections.

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.
validate_bearer_token
Validate a bearer token using JWKS-backed signature verification and basic claim checks.

Type Aliases§

OAuthResult
Convenience result alias for OAuth operations.