Skip to Content
0
Sep 12, 2011 at 08:30 AM

Thowing Messing from custom LoginModule

13 Views

Hi,

i created a custom Loginmodule for a NW Portal 7.0 which is working fine.

I want to show now a message other the "USER_AUTH_FAILED" (from

com.sap.security.core.logon.imp.SecurityPolicy ) .

which is coming from the javax.security.auth.login.LoginException .

I thow the Login Exception like :

thow new LoginException ("USERID_NOT_FOUND");

This is shown in the log that the Exception and the text is thrown.

However when i call in my custom Login iView :

UMFactory.getLogonAuthenticator().logon(request, response, "default");

I get the Exception message : USER_AUTH_FAILED and not my custom Exception.

I assume that i have to call a different (propably custom) AUTHSCHEME which has only my custom Loginmodule (using Controlflag Requisite) ?

Is there anybody who has done this ?

Regards,

Kai