Crate distant_auth

Source
Expand description

§distant auth

Crates.io Docs.rs Rustc 1.70.0

§Details

The distant-auth library supplies the authentication functionality for the distant interfaces and distant cli.

§Installation

You can import the dependency by adding the following to your Cargo.toml:

[dependencies]
distant-auth = "0.20"

§License

This project is licensed under either of

Apache License, Version 2.0, (LICENSE-APACHE or apache-license) MIT license (LICENSE-MIT or mit-license) at your option.

Modules§

msg

Structs§

AuthHandlerMap
Implementation of AuthHandler that maintains a map of AuthMethodHandler implementations for specific methods, invoking on_challenge, on_verification, on_info, and on_error for a specific handler based on an associated id.
DummyAuthHandler
Dummy implementation of AuthHandler where any challenge or verification request will instantly fail.
DynAuthHandler
Implementation of AuthHandler that holds a mutable reference to another AuthHandler trait object to use underneath.
NoneAuthenticationMethod
Authenticaton method that skips authentication and approves anything.
PromptAuthMethodHandler
Blocking implementation of AuthMethodHandler that uses prompts to communicate challenge & verification requests, receiving responses to relay back.
ProxyAuthHandler
Implementation of AuthHandler that redirects all requests to an Authenticator.
SingleAuthHandler
Implementation of AuthHandler that uses the same AuthMethodHandler for all methods.
StaticKeyAuthMethodHandler
Implementation of AuthMethodHandler that answers challenge requests using a static [HeapSecretKey]. All other portions of method authentication are handled by another AuthMethodHandler.
StaticKeyAuthenticationMethod
Authenticaton method for a static secret key
Verifier
Supports authenticating using a variety of methods

Traits§

AuthHandler
Interface for a handler of authentication requests for all methods.
AuthMethodHandler
Interface for a handler of authentication requests for a specific authentication method.
Authenticate
Represents an interface for authenticating with a server.
AuthenticationMethod
Represents an interface to authenticate using some method
Authenticator
Represents an interface for submitting challenges for authentication.