Combine Roles and Trusted Context

With the authenticated mode, the wire listener can use both listener role specifications and database context user associations, either separately or combined.

Trusted context definitions can also include database role assignments. For more information, go to Role membership inheritance through a trusted context

Combining wire listener user roles with trusted context, especially when that context includes database roles, results in complex authorization paths and might result in unanticipated rejections of listener requests. Use both authorization options only if neither listener roles nor user context on their own can provide the wanted authorization scope.