In general the login method will pass tokens to a server and parse the response for any necessary keys. Logout will remove the tokens locally and call any necessary server Create AuthenticationModule HttpDigestAuthenticationConfiguration config "aerogear-dev@lists.jboss.org"); userData.put("username", "ag"); .