<div dir="ltr"><div>Hi,</div><div><br></div><div>I have a web frontend application that is communicating with a beckend REST service. I would like the web frontend to automatically authenticate/authorize with the REST services by including the username and roles of the authenticated user as HTTP headers in the REST call. I found a wildfly quickstart (http-custom-mechanism) which allows me to the authentication part. However, I haven&#39;t not been able to figure out how to provide the roles in the same fashion. In the case of the quickstart I mentioned, it would be something like adding an additional HTTP header to the curl call, like so:</div><div><br></div>-H &quot;X-ROLES:admin,ops&quot;<br><br><div>which would result in the user being assigned the &quot;admin&quot; and &quot;ops&quot; roles in the REST service.</div><div><br></div><div>Does anyone have any pointers on how I can do this?</div><div><br></div><div>Thanks in advance.<br></div><div><br></div></div>