The abort() method in AbstractServerLoginModule always return true

Solution Verified - Updated -

Issue

  • Issue with LoginModule abort() return value.
  • According to the spec1:

    • abort() should return true or throw exception if login() succeeded, and should return false if login() failed.
    • However, when I have a custom login module extends from DatabaseServerLoginModule, super.abort() always returns true.
    • Can you confirm that abort() in DatabaseServerLoginModule follows the spec1?
  • According to the spec1, abort() should return true or throw exception if login() succeeded, and should return false if login() failed. However, abort() of subclasses of org.jboss.security.auth.spi.AbstractServerLoginModule always returns true.

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.3.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content