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§
- Auth
Handler Map - 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
Auth Handler - Dummy implementation of
AuthHandler
where any challenge or verification request will instantly fail. - DynAuth
Handler - Implementation of
AuthHandler
that holds a mutable reference to anotherAuthHandler
trait object to use underneath. - None
Authentication Method - Authenticaton method that skips authentication and approves anything.
- Prompt
Auth Method Handler - Blocking implementation of
AuthMethodHandler
that uses prompts to communicate challenge & verification requests, receiving responses to relay back. - Proxy
Auth Handler - Implementation of
AuthHandler
that redirects all requests to anAuthenticator
. - Single
Auth Handler - Implementation of
AuthHandler
that uses the sameAuthMethodHandler
for all methods. - Static
KeyAuth Method Handler - Implementation of
AuthMethodHandler
that answers challenge requests using a static [HeapSecretKey
]. All other portions of method authentication are handled by anotherAuthMethodHandler
. - Static
KeyAuthentication Method - Authenticaton method for a static secret key
- Verifier
- Supports authenticating using a variety of methods
Traits§
- Auth
Handler - Interface for a handler of authentication requests for all methods.
- Auth
Method Handler - Interface for a handler of authentication requests for a specific authentication method.
- Authenticate
- Represents an interface for authenticating with a server.
- Authentication
Method - Represents an interface to authenticate using some method
- Authenticator
- Represents an interface for submitting challenges for authentication.