Expand description
AuthN Resolver SDK
This crate provides the public API for the authn_resolver module:
AuthNResolverClient- Public API trait for consumersAuthNResolverPluginClient- Plugin API trait for implementationsAuthenticationResult- Authentication result modelAuthNResolverError- Error typesAuthNResolverPluginSpecV1- GTS schema for plugin discovery
§Usage
Consumers obtain the client from ClientHub:
ⓘ
use authn_resolver_sdk::AuthNResolverClient;
// Get the client from ClientHub
let authn = hub.get::<dyn AuthNResolverClient>()?;
// Authenticate a bearer token
let result = authn.authenticate("Bearer xyz...").await?;
let security_context = result.security_context;Re-exports§
pub use api::AuthNResolverClient;pub use error::AuthNResolverError;pub use gts::AuthNResolverPluginSpecV1;pub use models::AuthenticationResult;pub use plugin_api::AuthNResolverPluginClient;
Modules§
- api
- Public API trait for the
AuthNresolver. - error
- Error types for the
AuthNresolver module. - gts
- GTS schema definitions for
AuthNresolver plugins. - models
- Domain models for the
AuthNresolver module. - plugin_
api - Plugin API trait for
AuthNresolver implementations.