Crate distant_auth
source ·Expand description
distant auth
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
Structs
- Implementation of
AuthHandlerthat maintains a map ofAuthMethodHandlerimplementations for specific methods, invokingon_challenge,on_verification,on_info, andon_errorfor a specific handler based on an associated id. - Dummy implementation of
AuthHandlerwhere any challenge or verification request will instantly fail. - Implementation of
AuthHandlerthat holds a mutable reference to anotherAuthHandlertrait object to use underneath. - Authenticaton method for a static secret key
- Blocking implementation of
AuthMethodHandlerthat uses prompts to communicate challenge & verification requests, receiving responses to relay back. - Implementation of
AuthHandlerthat redirects all requests to anAuthenticator. - Implementation of
AuthHandlerthat uses the sameAuthMethodHandlerfor all methods. - Implementation of
AuthMethodHandlerthat answers challenge requests using a static [HeapSecretKey]. All other portions of method authentication are handled by anotherAuthMethodHandler. - Authenticaton method for a static secret key
- Supports authenticating using a variety of methods
Traits
- Interface for a handler of authentication requests for all methods.
- Interface for a handler of authentication requests for a specific authentication method.
- Represents an interface for authenticating with a server.
- Represents an interface to authenticate using some method
- Represents an interface for submitting challenges for authentication.