Expand description
§Omnia WASI Identity
This crate provides the Identity interface for the Omnia runtime.
§Interface
Implements the wasi:identity WIT interface.
§Backend
- Default: Uses
oauth2crate to interact with OAuth2/OIDC providers.
§Configuration
Requires configuration via environment variables or other sources to set provider details (Client ID, Client Secret, etc.).
§Usage
Add this crate to your Cargo.toml and use it in your runtime configuration:
ⓘ
use omnia::runtime;
use omnia_wasi_identity::IdentityDefault;
omnia::runtime!({
"identity": IdentityDefault,
});§License
MIT OR Apache-2.0
§WASI Identity Service
This module implements a runtime service for wasi:identity
(https://github.com/augentic/wasi-identity).
Macros§
- omnia_
wasi_ view - Implementation of the
WasiIdentityViewtrait for the store context.
Structs§
- Access
Token - An OAuth 2.0 access token along with its expiration time.
- Identity
Default - Default implementation for
wasi:identity. - Identity
Proxy - Represents an identity resource in the WASI Vault.
- Wasi
Identity - Host-side service for
wasi:identity. - Wasi
Identity CtxView - View into
WasiIdentityCtximplementation andResourceTable.
Traits§
- Identity
- Providers implement the
Identitytrait to allow the host to interact with different backend identity providers. - Wasi
Identity Ctx - A trait which provides internal WASI Identity context.
- Wasi
Identity View - A trait which provides internal WASI Identity state.
Type Aliases§
- Future
Result - Result type for asynchronous operations.
- Result
- Result type for identity operations.