OJS OCS OMP OHS

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
What to do if you have a technical problem with OJS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a development question, try the OJS Development subforum.

OJS JOSSO Integration

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

Further discussion is here:
viewtopic.php?f=8&t=2322

Hi,
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.
GennadyK
 
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.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8617
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
Attachments
OJS_API.ZIP
(6.31 KiB) Downloaded 50 times
GennadyK
 
Posts: 19
Joined: Tue Apr 24, 2007 9:16 am

Re: OJS JOSSO Integration

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

Hi,
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:

OJS\classes\security\Validation.inc.php:
/**
* 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

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


Return to OJS Technical Support

Who is online

Users browsing this forum: No registered users and 1 guest