Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SSO Auto create user problem

 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
monroe, thanks for your reply
[originally posted on jforum.net by stepby]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic