Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Some doubts about sso integration

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The answer is here my friend, all clearly explained.

http://www.jforum.net/doc/ImplementSSO

Good luck
[originally posted on jforum.net by snowman999]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I've already read that page before my post but my doubts remain.
Can Someone tell me shortly something about my doubts?
Thanks, bye bye.
[originally posted on jforum.net by abdujaparov]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
RemoteUserSSO is intended to use for other type of authentication.

*How* you validate an user in your SSO class is up to you, as long as you respect the SSO contract. You don't need to create any user in JForum, as the SSO engine does that automatically for you.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I've created another RemoteSSO class that makes the same thing in practice I receive an HTTP message with many headers so I need to extract the username from one of these headers. After the extraction of the username I insert it in the JForum db, manually. Finally I return the username.
Is this implementation correct?
Thanks, bye bye.
[originally posted on jforum.net by abdujaparov]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think that if it works for you, then fine. There are dozens of different ways of implementing SSO, so there isn't one that is more correct than another.

Rafel
[originally posted on jforum.net by Rafael Steil]
 
Bring out your dead! Or a tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic