cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Login Module - Commit Method return TRUE always?

Former Member
0 Kudos

Hi,

I am creating a custom login module for my portal authentication.

For the login module, should the commit() method always return TRUE?

The example code on help.sap.com indicates yes to this question.

However, the JAVA Sun standard indicates that commit should return FALSE if the preceding login method returned FALSE.

Does the SAP example stray from the SUN standard? How should I code the commit() method such that it works (Always TRUE, or follow lead of login() method)?

Regards,

Kevin

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Kevin,

I'm actually working with this document: <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/events/webinars/jaas%20login%20module%20development%20on%20webas%20java%20640.pdf#search=%22classloader%20sda%20jar%20reference%22">JAAS Login Modules</a>.

There is also example code. If it should be ignored they return false, otherwise true (page 32).

Regards,

Marcus

Message was edited by: Marcus Freiheit

Former Member
0 Kudos

Hi Marcus,

Thank you for the reply! I think I understand, but just one more question for sake of clarity.

It appears then that the only time that the commit method should return FALSE is when the login method throws an UnsupportedCallbackException. Correct?

Kevin