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§
- AuthHandler Map 
- 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.
- DummyAuth Handler 
- Dummy implementation of AuthHandlerwhere any challenge or verification request will instantly fail.
- DynAuthHandler 
- Implementation of AuthHandlerthat holds a mutable reference to anotherAuthHandlertrait object to use underneath.
- NoneAuthentication Method 
- Authenticaton method that skips authentication and approves anything.
- PromptAuth Method Handler 
- Blocking implementation of AuthMethodHandlerthat uses prompts to communicate challenge & verification requests, receiving responses to relay back.
- ProxyAuth Handler 
- Implementation of AuthHandlerthat redirects all requests to anAuthenticator.
- SingleAuth Handler 
- Implementation of AuthHandlerthat uses the sameAuthMethodHandlerfor all methods.
- StaticKeyAuth Method Handler 
- Implementation of AuthMethodHandlerthat answers challenge requests using a static [HeapSecretKey]. All other portions of method authentication are handled by anotherAuthMethodHandler.
- StaticKeyAuthentication Method 
- 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.
- AuthMethod Handler 
- 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.