How to create JAX-RS Role Based security

Solution Verified - Updated -

Issue

  • Role based security is not working on our JBoss environment. The call of the rest api is blocked, but the credentials (http header AUTHORIZATION) is not processed.

  • The service was tested with curl --request GET --user abcuser:abcpass --url http://localhost:8080/abc/xyz/test/hello

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.