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
AuthHandler
that maintains a map ofAuthMethodHandler
implementations for specific methods, invokingon_challenge
,on_verification
,on_info
, andon_error
for a specific handler based on an associated id. - Dummy implementation of
AuthHandler
where any challenge or verification request will instantly fail. - Implementation of
AuthHandler
that holds a mutable reference to anotherAuthHandler
trait object to use underneath. - Authenticaton method that skips authentication and approves anything.
- Blocking implementation of
AuthMethodHandler
that uses prompts to communicate challenge & verification requests, receiving responses to relay back. - Implementation of
AuthHandler
that redirects all requests to anAuthenticator
. - Implementation of
AuthHandler
that uses the sameAuthMethodHandler
for all methods. - Implementation of
AuthMethodHandler
that 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.