Skip to main content

Crate omnia_wasi_identity

Crate omnia_wasi_identity 

Source
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 oauth2 crate 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 WasiIdentityView trait for the store context.

Structs§

AccessToken
An OAuth 2.0 access token along with its expiration time.
IdentityDefault
Default implementation for wasi:identity.
IdentityProxy
Represents an identity resource in the WASI Vault.
WasiIdentity
Host-side service for wasi:identity.
WasiIdentityCtxView
View into WasiIdentityCtx implementation and ResourceTable.

Traits§

Identity
Providers implement the Identity trait to allow the host to interact with different backend identity providers.
WasiIdentityCtx
A trait which provides internal WASI Identity context.
WasiIdentityView
A trait which provides internal WASI Identity state.

Type Aliases§

FutureResult
Result type for asynchronous operations.
Result
Result type for identity operations.