-
1. Custom principal from standalone client
johanandren Mar 31, 2011 5:16 AM (in response to johanandren)So, three years and five hundred reads but no one chiming in... To explain the final solution if anyone is interested:
After having some problems with the above solution and remote client managing the transaction we changed our solution to actually concatenating the code with the username upon authentication and then a custom LoginModule that splits the username and configuration code and creates a custom principal which can then be used inside the JEE app.
So the user logs in with "username1" "password1" and "code1" which becomes "username1:code1" before beeing given to the JBoss authentication classes on the client, the server module separates "username1" and "code1" again and creates a new instance of CustomPrincipal which has a field for code.