OpenAM 11: Display exception from authenticating datastore -


we using custom database data store in openam. store authenticates user against our oracle database. now, there many possible causes why authentication might fail. account locked in oracle or password might expired. datastore catches sqlexception, how propagate cause openam ui?

i can throw authloginexception authenticate(), on way amlogincontext, gets wrapped , amlogincontext kind of ignores error codes of authloginexceptions anyway. meaning: amlogincontext doesn't read error code exception tries determine error code itself, , puts amautherrorcode.auth_login_failed login state.

how ui show cause of login problem?

as bernhard says, not recommended. however, data store obtain debug instance (com.sun.identity.shared.debug.debug) , can log exceptions, , appear in [am_install_dir]/openam/debug.

edit: can find examples of doing throughout openam source code.


Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -