OJS development discussion, enhancement requests, third-party patches and plug-ins.
Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher
The OJS Technical Reference
and the OJS API Reference
are both available from the OJS Documentation
You can access our public Git Repository here
. Comprehensive Git usage instructions are available on the wiki
You can access our Bugzilla report tracker here
You can use our Google Custom Search
to search across our main website, the support forum, and Bugzilla.
Questions and discussion are welcome, but if you have a workflow or usability question you should probably post to the OJS Editorial Support and Discussion
subforum; if you have a technical support question, try the OJS Technical Support
I am working on integrating 'implicit' authentication using Shibboleth - into OJS.
One of the things I need to be able to do is to create/register a new user (using information from Shibboleth).
I have found the code that creates new users - in 'classes/user/form/RegistrationForm.inc.php'.
It all looks pretty straitforward as far as creating a new record in the users database - using the UserDao's insertUser method.
The question I have is regarding the necessity of specifying the journal that the new user is registering for.
I have a couple of questions:
* Will it cause problems if I don't create a Role for the new user? It appears that the 'Role' record is where the Journal key is kept.
* Can the user go back in later and set up a role (and specify the Journal at that point)?
Any other thoughts on automatically creating users?
Thanks for any input
-- Dan Galewsky
Texas Digital Library
University of Texas, Austin
- Posts: 3
- Joined: Mon Mar 03, 2008 2:55 pm
The role table is indeed the way users are associated with particular journals. Users can create roles for themselves later, depending on the journal's configuration (i.e. whether Author self-registration is allowed), but this process has caused confusion with readers before and should be avoided unless necessary. If you know from your remote authentication source which journal a user is associated with, it wouldn't hurt to insert a Reader role at the time you create the user account.
Public Knowledge Project Team
- Posts: 9429
- Joined: Wed Aug 10, 2005 12:56 pm
Return to OJS Development
Who is online
Users browsing this forum: No registered users and 4 guests