public struct BasicAuthenticator : IAuthenticator
The BasicAuthenticator class is an authenticator that will authenticate using HTTP Basic auth with the given username and password. This should only be used over an SSL/TLS connection, as otherwise it’s very easy for anyone sniffing network traffic to read the password.
public let username: String
public let password: String
Initializes with the username and password.
public init(username: String, password: String)