Hi everybody,
I am trying to integrate JForum to my web application. I�ve read the documentation and some messages on the forum but I have still doubts about the RemoteUserSSO class and how I could substitute it.
If I understand correctly the class RemoteUserSSO receives an http request (Does �RequestContext request� contain an http request? It seems me yes but I am not sure), it checks if there is an username and if this last thing is present insert the username in the db of JForum automatically. Do I understand correctly until this point?
Now in my web application when an user arrives to the forum is always authenticated and the http request contains many headers and in one of these headers there is the username, at this point I have understood I must create my own class for the user that extract the username from one of the headers (could I use �public
String getHeader(String name);� to get the useful header? Could not I?), then I put the username in the db (Is only the username necessary?) and finally return the username. If I have understood correctly in this way everything should work correctly, is it correct?
For the connection to the JForum db I have already written a snippet of code that use hibernate, can I reuse that or I must use a particular connection with the db?
Thanks a lot, bye bye.
[originally posted on jforum.net by abdujaparov]