It's not a secret anymore!*
The moose likes JForum and the fly likes SSO Auto create user problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JForum
Bookmark "SSO Auto create user problem" Watch "SSO Auto create user problem" New topic
Author

SSO Auto create user problem

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Hi All,

For the SSO implementation, SSO will call the authenticateUser() method, it will return a username. If the username name is not exist in the Jforum' DB, user account will be created.

I would like to ask what group should be assigned to this kinds of user. Administraor or General or other group. If I create the group manually in the forum, can I automatically assign user to the other group after login the Jforum by SSO ?

For example, Forum A and Forum B is in the Jforum. Only Group A user can post the topic and reply in Forum A and Group B user can post and reply in Forum B.

If the user login the Jforum by SSO, authenticateUser() method will be called. Then I will get the information from my applicantion's database. If it found that this user have read and post right for Forum A, then it will be create a user account in jforum database and assign user to Group A. How can I implement the logic in the authenticateUser() method ?

Thanks
Stepby
[originally posted on jforum.net by stepby]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
The SSOUtils.register method does this. It just creates a new user object with the user name obtained via SSO with the the default SSO password and email (unless the SSO method override the config settings).

The create a new user method does the same thing whether you are doing SSO or Registering or in the Admin Panels. It add the user to the default user group. This is "general" unless you modify the config default group id setting.

If you want to have a different group for SSO users, you will need to make your own version of the SSO implimentation and have the authenticateUser() method create the jforum User.
[originally posted on jforum.net by monroe]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
monroe, thanks for your reply
[originally posted on jforum.net by stepby]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SSO Auto create user problem