Class HttpBasicAuth

  • All Implemented Interfaces:
    TokenAuth

    public class HttpBasicAuth
    extends Object
    implements TokenAuth
    An HTTP Basic authenticator. Note that this is provided as a Hydrogen backward compatible authenticator, but usage of this authenticator or HTTP Basic Authentication is highly discouraged due to its vulnerability.

    To obtain a token using the HttpBasicAuth Strategy, add a header to your HTTP request in the form: Authorization: Basic BASE_64_ENCODED_CREDENTIALS

    Where BASE_64_ENCODED_CREDENTIALS is the base 64 encoded value of the user's credentials in the following form: user:password

    For example, assuming the user is "admin" and the password is "admin": Authorization: Basic YWRtaW46YWRtaW4=

    Author:
    liemmn