Implementing the AuthenticationResource class