In our application we need to let user select the desired datasource when logging in with form-based authentication, and I'm not sure if it's at all possible when using standard form-based authentication. I heard it was possible using TextInputCallback, but have no idea how (and where) to implement it.
Passing additional parameters to j_security_check
1.6k Views Asked by Sergey At
1
There are 1 best solutions below
Related Questions in JAVA
- Add image to JCheckBoxMenuItem
- How to access invisible Unordered List element with Selenium WebDriver using Java
- Inheritance in Java, apparent type vs actual type
- Java catch the ball Game
- Access objects variable & method by name
- GridBagLayout is displaying JTextField and JTextArea as short, vertical lines
- Perform a task each interval
- Compound classes stored in an array are not accessible in selenium java
- How to avoid concurrent access to a resource?
- Why does processing goes slower on implementing try catch block in java?
- Redirect inside java interceptor
- Push toolbar content below statusbar
- Animation in Java on top of JPanel
- JPA - How to query with a LIKE operator in combination with an AttributeConverter
- Java Assign a Value to an array cell
Related Questions in PARAMETERS
- Creating a parametrized field name for a SELECT clause
- JavaScript - use link parameter to create text in the H1 tag of another page
- Iframe not passing url parameters
- Passing a lambda expression as parameter to a method?
- Joomla Get menu id from names
- OrientDB - SQL command to pass array value as parameter in OrientDB function
- Class enumerator values cannot be passed as parameters to another class's function
- Passing a predicate that was passed in as a parameter
- How to test MvvmCross MvxCommand<int> with NUnit
- How can I add another parameter to a drop down box?
- pass variables to jade template
- what does DefaultEdge.class mean in jgrapht example
- SSRS parameter Datatypes
- PHP | Change function inside class
- How to define a class that handles implicit conversion to bool when it uses a string variable in its constructor?
Related Questions in JAAS
- camunda-webapp and JAAS-authentication
- Wildfly custom login module never gets executed?
- Passing Kerberos ticket as parameter in SOAP web service call
- JWT JAAS - how to get the JWT in WebSocket header?
- JBoss AS 7 Custom Login Module never called
- JAAS get User information
- Principal object is anonymous JAAS security
- JBoss - not working the next day
- Deploy Security Domain on Jboss
- SASL configuration failed: unable to find RemotingLoginModule in Arquillian integration test
- Removing an unnecessary login module in Apache Karaf
- How to add a custom LoginModule to Karaf Jaas security framework?
- GlassFish LDAP configuration for groups
- JAAS exception null username and password
- JAAS authentication in jboss 7 using customloginmodule (DatabaseServerLoginModule)
Related Questions in J-SECURITY-CHECK
- Jboss Wildfly 8.1 session timeout on login page
- Remember Me auto fill value in forms
- JBoss 4 j_security_check filter
- How do I programmatically call authenticate from within a servlet like j_security_check would do
- Spring Security authenticationSuccessHandler and j_security_check
- How can I get j_username on my index.jsp after successful authentication with j_security_check?
- UTF-8 encoded j_security_check username incorrectly decoded as Latin-1 in Tomcat realm
- Glassfish 3.1.2 - after creating cluster & deploying app j_security_check loop
- j_security_check is not available if user is already logged in
- post login operation with j_security_check
- CDI SessionScoped Bean instance remains unchanged when login with different user
- Passing additional parameters to j_security_check
- How to check if a user is logged in when using auth-method FORM
- How to make weblogic form authentication in wicket
- Java forms auth with j_security_check and Glassfish
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
In the
web.xmlthere could be maximum one<login-config>tag. It means that you cannot use more than one realm in one web application. So, you need a more or less container specific solution.In Tomcat there is a CombinedRealm which can uses other realms.
Maybe it matches with your requirements. If not and users exist in more than one realm (with the same username) you could use prefixes. For example set
"domain\myuser"as the username.If you use nested
JDBCRealms you could create a database view which contains the prefixed usernames (just concat the prefix with the username) and use this view as the user table.Another approach is removing the prefix in a custom realm and call the container's
JDBCRealm(or its other realms) but it needs some coding. Anyway, it shouldn't be too hard, already existed realms probably can be used with the delegate design pattern.