In this tutorial we will demonstrate how to use a BASIC authentication in your REST Services using RESTEasy on the backend and the DefaultHttpClient on the client side.
Please note: this tutorial uses WildFly legacy security framework (Picketbox). If you want to learn how to secure JAX-RS Services using Elytron Security Framework check this article: Securing JAX-RS Services in WildFly applications