You are viewing the PKP Support Forum | PKP Home Wiki

OJS JOSSO Integration

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.

OJS JOSSO Integration

Postby GennadyK » Wed Oct 24, 2007 11:53 am

Further discussion is here:

Did anyone do OJS JOSSO Integration? Is anywhere some doc on OJS SSO Integration?
Or how I can create OJS session from outside of OJS (e.g. ASP application) using something like HTTP Request/Response?

This is what I've got and now trying to test it:
HTTP Request
http://www.ojs.com/index.php/GA/login/s ... ord=my_pwd

Thank you
Last edited by GennadyK on Wed Oct 24, 2007 2:12 pm, edited 1 time in total.
Posts: 19
Joined: Tue Apr 24, 2007 9:16 am

Re: OJS JOSSO Integration

Postby asmecher » Wed Oct 24, 2007 1:01 pm

Hi Gennady,

OJS has rudimentary LDAP support, but aside from that, no integration or SSO work has been done yet. You might want to read the thread at http://pkp.sfu.ca/support/forum/viewtopic.php?f=8&t=2322 and/or contact the user to see if you can join forces, if you're interested in working on SSO. OJS has custom session-handling code that should be easy to extend or override if you're handy with PHP.

This is definitely something we're interested in working on in the future, as OJS deploys well as part of a combined package including e.g. a CMS (like Drupal) and a Wiki (like MediaWiki), but it hasn't been a high priority for us yet.

Alec Smecher
Public Knowledge Project Team
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Re: OJS JOSSO Integration

Postby GennadyK » Fri Jan 25, 2008 1:56 pm

This is the way we did it:
1. Created OJS API that will log user automatically (please see attached OJS_API.ZIP)
http://www.ojs.com/index.php/journal/ap ... ue/current
2. Will use MySQL insert and update to create/modify user
3. Will use delete session cookie to log user off
(6.31 KiB) Downloaded 54 times
Posts: 19
Joined: Tue Apr 24, 2007 9:16 am

Re: OJS JOSSO Integration

Postby GennadyK » Fri May 15, 2009 1:49 pm

This may be helpful for someone:

This is how to call JOSSO (or any other SSO) login instead of OJS login to access articles, that require user access:

* Redirect to the login page, appending the current URL as the source.
function redirectLogin() {
if (isset($_SERVER['REQUEST_URI'])) {
// Request::redirect(null, 'login', null, null, array('source' => $_SERVER['REQUEST_URI']));
Request::redirectUrl('http://www.journal.com/sso/JOSSO_ASP_Partner_Application.asp?source='.$_SERVER['REQUEST_URI']); //JOSSO integration
} else {
Request::redirect(null, 'login');

Then from JOSSO_ASP_Partner_Application.asp you will use API to get requested page:
source=Request.QueryString("source") 'source parameter from OJS
Response.Redirect "http://www.journal.com/index.php/MyJournal/api?do=login&user=username&pwd=password&targetUrl=http://www.journal.com"+source

Posts: 19
Joined: Tue Apr 24, 2007 9:16 am

Return to OJS Technical Support

Who is online

Users browsing this forum: Bing [Bot], Yahoo [Bot] and 1 guest