Why do the JBoss login modules always returns HTTP 401?

Solution Unverified - Updated -

Issue

The Login modules always return a 401 HTTP error code, although an underlying server error like LDAP or databse down could have occur. In this case we want to inform our clients with an general technical error (e.g. HTTP 500) instead of a HTTP 401 Unauthorized, because the authentication did not fail.

But this seems to be not possible. What could be a propsed solution to that issue?

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.