CINXE.COM
Openid plugin in a multijournal OJS installation - Software Support - PKP Community Forum
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Openid plugin in a multijournal OJS installation - Software Support - PKP Community Forum</title> <meta name="description" content="Hi, I tried installing this plugin (ver. 3.2.1 and 3.3.0.7) in a multijournal OJS installation (3.2.1.4 and 3.4.0.5) but when i click on the global plugin settings (for all journals) i get errors: [php7:notice] PHP Not&hellip;"> <meta name="generator" content="Discourse 3.4.0.beta3-dev - https://github.com/discourse/discourse version 93983286b54a0e96b8073abce23f4566e9f296f7"> <link rel="icon" type="image/png" href="https://forum.pkp.sfu.ca/uploads/default/optimized/2X/c/ce0e654615215c392bc44f2fba0bb4d8fbf7e0cb_2_32x32.png"> <link rel="apple-touch-icon" type="image/png" href="https://forum.pkp.sfu.ca/uploads/default/optimized/2X/c/ce0e654615215c392bc44f2fba0bb4d8fbf7e0cb_2_180x180.png"> <meta name="theme-color" media="all" content="#ffffff"> <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, user-scalable=yes, viewport-fit=cover"> <link rel="canonical" href="https://forum.pkp.sfu.ca/t/openid-plugin-in-a-multijournal-ojs-installation/92406" /> <link rel="search" type="application/opensearchdescription+xml" href="https://forum.pkp.sfu.ca/opensearch.xml" title="PKP Community Forum Search"> <link href="/stylesheets/color_definitions_base__5_ee8b91b85f43505558ad1f12d6d95683b60ddac3.css?__ws=forum.pkp.sfu.ca" media="all" rel="stylesheet" class="light-scheme"/> <link href="/stylesheets/desktop_444f96be2512f01245e9c1c3067f1359d7253cb8.css?__ws=forum.pkp.sfu.ca" media="all" rel="stylesheet" data-target="desktop" /> <link href="/stylesheets/checklist_444f96be2512f01245e9c1c3067f1359d7253cb8.css?__ws=forum.pkp.sfu.ca" media="all" rel="stylesheet" data-target="checklist" /> <link href="/stylesheets/discourse-akismet_444f96be2512f01245e9c1c3067f1359d7253cb8.css?__ws=forum.pkp.sfu.ca" media="all" rel="stylesheet" data-target="discourse-akismet" /> <link href="/stylesheets/discourse-assign_444f96be2512f01245e9c1c3067f1359d7253cb8.css?__ws=forum.pkp.sfu.ca" media="all" rel="stylesheet" data-target="discourse-assign" /> <link href="/stylesheets/discourse-canned-replies_444f96be2512f01245e9c1c3067f1359d7253cb8.css?__ws=forum.pkp.sfu.ca" media="all" rel="stylesheet" data-target="discourse-canned-replies" /> <link href="/stylesheets/discourse-details_444f96be2512f01245e9c1c3067f1359d7253cb8.css?__ws=forum.pkp.sfu.ca" media="all" rel="stylesheet" data-target="discourse-details" /> <link href="/stylesheets/discourse-lazy-videos_444f96be2512f01245e9c1c3067f1359d7253cb8.css?__ws=forum.pkp.sfu.ca" media="all" rel="stylesheet" data-target="discourse-lazy-videos" /> <link href="/stylesheets/discourse-local-dates_444f96be2512f01245e9c1c3067f1359d7253cb8.css?__ws=forum.pkp.sfu.ca" media="all" rel="stylesheet" data-target="discourse-local-dates" /> <link href="/stylesheets/discourse-narrative-bot_444f96be2512f01245e9c1c3067f1359d7253cb8.css?__ws=forum.pkp.sfu.ca" media="all" rel="stylesheet" data-target="discourse-narrative-bot" /> <link href="/stylesheets/discourse-presence_444f96be2512f01245e9c1c3067f1359d7253cb8.css?__ws=forum.pkp.sfu.ca" media="all" rel="stylesheet" data-target="discourse-presence" /> <link href="/stylesheets/discourse-solved_444f96be2512f01245e9c1c3067f1359d7253cb8.css?__ws=forum.pkp.sfu.ca" media="all" rel="stylesheet" data-target="discourse-solved" /> <link href="/stylesheets/discourse-voting_444f96be2512f01245e9c1c3067f1359d7253cb8.css?__ws=forum.pkp.sfu.ca" media="all" rel="stylesheet" data-target="discourse-voting" /> <link href="/stylesheets/docker_manager_444f96be2512f01245e9c1c3067f1359d7253cb8.css?__ws=forum.pkp.sfu.ca" media="all" rel="stylesheet" data-target="docker_manager" /> <link href="/stylesheets/footnote_444f96be2512f01245e9c1c3067f1359d7253cb8.css?__ws=forum.pkp.sfu.ca" media="all" rel="stylesheet" data-target="footnote" /> <link href="/stylesheets/poll_444f96be2512f01245e9c1c3067f1359d7253cb8.css?__ws=forum.pkp.sfu.ca" media="all" rel="stylesheet" data-target="poll" /> <link href="/stylesheets/spoiler-alert_444f96be2512f01245e9c1c3067f1359d7253cb8.css?__ws=forum.pkp.sfu.ca" media="all" rel="stylesheet" data-target="spoiler-alert" /> <link href="/stylesheets/discourse-voting_desktop_444f96be2512f01245e9c1c3067f1359d7253cb8.css?__ws=forum.pkp.sfu.ca" media="all" rel="stylesheet" data-target="discourse-voting_desktop" /> <link href="/stylesheets/poll_desktop_444f96be2512f01245e9c1c3067f1359d7253cb8.css?__ws=forum.pkp.sfu.ca" media="all" rel="stylesheet" data-target="poll_desktop" /> <link href="/stylesheets/desktop_theme_17_10fca24742f96019a809edaff87081067fe7524e.css?__ws=forum.pkp.sfu.ca" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="17" data-theme-name="discourse-category-banners"/> <link href="/stylesheets/desktop_theme_14_93df6570b29c41eddc1203bea5b385dc42951b85.css?__ws=forum.pkp.sfu.ca" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="14" data-theme-name="versatile banner"/> <link href="/stylesheets/desktop_theme_2_4254f2f31c07cd21cddc50d4cbb041acf6ba86e3.css?__ws=forum.pkp.sfu.ca" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="2" data-theme-name="new style"/> <link href="/stylesheets/desktop_theme_5_095bc99a51d34996906593db301fe4302ae5fb19.css?__ws=forum.pkp.sfu.ca" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="5" data-theme-name="default"/> <script defer="" src="/theme-javascripts/f07336d7b7656c07e984eaea8c91a56ccbbfd8b0.js?__ws=forum.pkp.sfu.ca" data-theme-id="6" nonce="UG7dvaSLshOPtdZPe3WltftOl"></script> <link rel="alternate nofollow" type="application/rss+xml" title="RSS feed of 'Openid plugin in a multijournal OJS installation'" href="https://forum.pkp.sfu.ca/t/openid-plugin-in-a-multijournal-ojs-installation/92406.rss" /> <meta property="og:site_name" content="PKP Community Forum" /> <meta property="og:type" content="website" /> <meta name="twitter:card" content="summary" /> <meta name="twitter:image" content="https://forum.pkp.sfu.ca/uploads/default/original/2X/c/ce0e654615215c392bc44f2fba0bb4d8fbf7e0cb.png" /> <meta property="og:image" content="https://forum.pkp.sfu.ca/uploads/default/original/2X/c/ce0e654615215c392bc44f2fba0bb4d8fbf7e0cb.png" /> <meta property="og:url" content="https://forum.pkp.sfu.ca/t/openid-plugin-in-a-multijournal-ojs-installation/92406" /> <meta name="twitter:url" content="https://forum.pkp.sfu.ca/t/openid-plugin-in-a-multijournal-ojs-installation/92406" /> <meta property="og:title" content="Openid plugin in a multijournal OJS installation" /> <meta name="twitter:title" content="Openid plugin in a multijournal OJS installation" /> <meta property="og:description" content="Hi, I tried installing this plugin (ver. 3.2.1 and 3.3.0.7) in a multijournal OJS installation (3.2.1.4 and 3.4.0.5) but when i click on the global plugin settings (for all journals) i get errors: [php7:notice] PHP Notice: Trying to access array offset on value of type null in /var/www-data/ojs-3.2.1-4-test/plugins/generic/openid/forms/OpenIDPluginSettingsForm.inc.php on line 67, referer: https://xxx/ojs-test/index.php/index/admin/settings [php7:error] PHP Fatal error: Uncaught Error: Call ..." /> <meta name="twitter:description" content="Hi, I tried installing this plugin (ver. 3.2.1 and 3.3.0.7) in a multijournal OJS installation (3.2.1.4 and 3.4.0.5) but when i click on the global plugin settings (for all journals) i get errors: [php7:notice] PHP Notice: Trying to access array offset on value of type null in /var/www-data/ojs-3.2.1-4-test/plugins/generic/openid/forms/OpenIDPluginSettingsForm.inc.php on line 67, referer: https://xxx/ojs-test/index.php/index/admin/settings [php7:error] PHP Fatal error: Uncaught Error: Call ..." /> <meta property="og:article:section" content="Software Support" /> <meta property="og:article:section:color" content="aba" /> <meta name="twitter:label1" value="Reading time" /> <meta name="twitter:data1" value="2 mins 🕑" /> <meta name="twitter:label2" value="Likes" /> <meta name="twitter:data2" value="3 ❤" /> <meta property="article:published_time" content="2024-10-23T08:26:52+00:00" /> <meta property="og:ignore_canonical" content="true" /> <script type="application/ld+json">{"@context":"http://schema.org","@type":"QAPage","name":"Openid plugin in a multijournal OJS installation","mainEntity":{"@type":"Question","name":"Openid plugin in a multijournal OJS installation","text":"Hi,\n\nI tried installing this plugin (ver. 3.2.1 and 3.3.0.7) in a multijournal OJS installation (3.2.1.4 and 3.4.0.5) but when i click on the global plugin settings (for all journals) i get errors:\n\n[php7:notice] PHP Notice: Trying to access array offset on value of type null in /var/www-data/ojs-3…","upvoteCount":0,"answerCount":0,"datePublished":"2024-10-23T08:26:52.543Z","author":{"@type":"Person","name":"orcalator","url":"https://forum.pkp.sfu.ca/u/orcalator"}}}</script> </head> <body class="crawler browser-update"> <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin=""> <link href="https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;700&display=swap" rel="stylesheet"> <link rel="stylesheet" href="https://kit.fontawesome.com/80b72542d6.css" crossorigin="anonymous"> <!-- <img src="https://sfupkp.dev.affinitybridge.com/wp-content/uploads/2023/PKP%20Community%20forum%20reverse.png"> --> <!-- <div class="header-mobile-logo"> <img src="https://forum.pkp.sfu.ca/uploads/default/original/3X/5/8/58014313a8317b5ead55db78b0baa78a043e2a07.png"> </div>--> <script defer="" src="/theme-javascripts/caceb0147ad28e327965ee85e5dcd04a7fd1b33b.js?__ws=forum.pkp.sfu.ca" data-theme-id="17" nonce="UG7dvaSLshOPtdZPe3WltftOl"></script> <header> <a href="/"> PKP Community Forum </a> </header> <div id="main-outlet" class="wrap" role="main"> <div id="topic-title"> <h1> <a href="/t/openid-plugin-in-a-multijournal-ojs-installation/92406">Openid plugin in a multijournal OJS installation</a> </h1> <div class="topic-category" itemscope itemtype="http://schema.org/BreadcrumbList"> <span itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"> <a href="/c/questions/5" class="badge-wrapper bullet" itemprop="item"> <span class='badge-category-bg' style='background-color: #aba'></span> <span class='badge-category clear-badge'> <span class='category-name' itemprop='name'>Software Support</span> </span> </a> <meta itemprop="position" content="1" /> </span> </div> </div> <div itemscope itemtype='http://schema.org/DiscussionForumPosting'> <meta itemprop='headline' content='Openid plugin in a multijournal OJS installation'> <link itemprop='url' href='https://forum.pkp.sfu.ca/t/openid-plugin-in-a-multijournal-ojs-installation/92406'> <meta itemprop='datePublished' content='2024-10-23T08:26:52Z'> <meta itemprop='articleSection' content='Software Support'> <meta itemprop='keywords' content=''> <div itemprop='publisher' itemscope itemtype="http://schema.org/Organization"> <meta itemprop='name' content='PKP Community Forum'> <div itemprop='logo' itemscope itemtype="http://schema.org/ImageObject"> <meta itemprop='url' content='https://forum.pkp.sfu.ca/uploads/default/original/3X/4/5/45a9de6ef7d6dd341f08a3f1e9a1b41e1c0a5ad2.png'> </div> </div> <div id='post_1' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://forum.pkp.sfu.ca/u/orcalator'><span itemprop='name'>orcalator</span></a> </span> <link itemprop="mainEntityOfPage" href="https://forum.pkp.sfu.ca/t/openid-plugin-in-a-multijournal-ojs-installation/92406"> <span class="crawler-post-infos"> <time datetime='2024-10-23T08:26:52Z' class='post-time'> October 23, 2024, 8:26am </time> <meta itemprop='dateModified' content='2024-10-23T19:22:34Z'> <span itemprop='position'>1</span> </span> </div> <div class='post' itemprop='text'> <p>Hi,</p> <p>I tried installing this plugin (ver. 3.2.1 and 3.3.0.7) in a multijournal OJS installation (3.2.1.4 and 3.4.0.5) but when i click on the global plugin settings (for all journals) i get errors:</p> <pre><code class="lang-auto">[php7:notice] PHP Notice: Trying to access array offset on value of type null in /var/www-data/ojs-3.2.1-4-test/plugins/generic/openid/forms/OpenIDPluginSettingsForm.inc.php on line 67, referer: https://xxx/ojs-test/index.php/index/admin/settings [php7:error] PHP Fatal error: Uncaught Error: Call to a member function getPath() on null in /var/www-data/ojs-3.2.1-4-test/plugins/generic/openid/forms/OpenIDPluginSettingsForm.inc.php:126 Stack trace: #0 /var/www-data/ojs-3.2.1-4-test/plugins/generic/openid/OpenIDPlugin.inc.php(184): OpenIDPluginSettingsForm->fetch() #1 /var/www-data/ojs-3.2.1-4-test/lib/pkp/classes/controllers/grid/plugins/PluginGridHandler.inc.php(234): OpenIDPlugin->manage() #2 /var/www-data/ojs-3.2.1-4-test/lib/pkp/classes/core/PKPRouter.inc.php(391): PluginGridHandler->manage() #3 /var/www-data/ojs-3.2.1-4-test/lib/pkp/classes/core/PKPComponentRouter.inc.php(257): PKPRouter->_authorizeInitializeAndCallRequest() #4 /var/www-data/ojs-3.2.1-4-test/lib/pkp/classes/core/Dispatcher.inc.php(143): PKPComponentRouter->route() #5 /var/www-data/ojs-3.2.1-4-test/lib/pkp/classes/core/PKPApplication.inc.php(281): Dispatcher->dispatch() #6 /var/www-data/ojs-3.2.1-4-test/index.php(68): PKPApplication->execute() #7 {main} thrown in /var/www-data/ojs-3.2.1-4-test/plugins/generic/openid/forms/OpenIDPluginSettingsForm.inc.php on line 126, referer: https://xxx/ojs-test/index.php/index/admin/settings </code></pre> <p>Settings are, however, working on a journal level. So, i guess this plugin doesn’t support multijournal OJS installation? Basically what i need is to be able to change authentication for all journals present in the multijournal installation and not per journal. Is there a way to do this?</p> <p>Regards.</p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="0" /> <span class='post-likes'></span> </div> </div> <div id='post_2' itemprop='comment' itemscope itemtype='http://schema.org/Comment' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://forum.pkp.sfu.ca/u/Dimitris_Efstathiou'><span itemprop='name'>Dimitris_Efstathiou</span></a> </span> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2024-10-25T08:43:57Z' class='post-time'> October 25, 2024, 8:43am </time> <meta itemprop='dateModified' content='2024-10-25T08:43:57Z'> <span itemprop='position'>2</span> </span> </div> <div class='post' itemprop='text'> <p>Hi <a class="mention" href="/u/orcalator">@orcalator</a>, thank you for using the plugin and reporting your issue.</p> <p>First of all, we should keep an ojs installation/plugin version consistency. So for a v.3.4.X ojs we should use <code>stable-3.4.0</code> branch.</p> <p>If you can’t use github branches we can create a release for 3.4 asap.</p> <p>Regarding the functionality you want to achieve: to use the plugin on the site level, you must enable it once from <code>Administration -> Site Settings -> Plugins (tab) -> OpenID Authentication Plugin -> Enable</code></p> <p>After that you can select <code>Settings</code> and configure the plugin.</p> <p>When all those are done, both the site level Login page and the Journal level login page should have the Authentication source that you have enabled, ready to be used.</p> <p>Do you want to settle on an OJS version preferably >= 3.3.x and walk you through from there?</p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="0" /> <span class='post-likes'></span> </div> </div> <div id='post_4' itemprop='comment' itemscope itemtype='http://schema.org/Comment' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://forum.pkp.sfu.ca/u/orcalator'><span itemprop='name'>orcalator</span></a> </span> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2024-10-25T08:57:29Z' class='post-time'> October 25, 2024, 8:57am </time> <meta itemprop='dateModified' content='2024-10-25T08:57:29Z'> <span itemprop='position'>4</span> </span> </div> <div class='post' itemprop='text'> <p>Hello Dimitris,</p> <p>Thank you for help, i suppose you are a new developer working on this plugin. Nice to meet you <img src="https://forum.pkp.sfu.ca/images/emoji/twitter/wink.png?v=12" title=":wink:" class="emoji" alt=":wink:" loading="lazy" width="20" height="20"> I’d like to try stable-3.4.0 branch but i don’t see that branch in github. Is that a master branch? I only see master, stable-3.1.2 and stable-3.2.1 branch. Since i upgraded OJS to 3.4 i’d like to try openid stable-3.4.0. Can you provide me a link to the branch / zip ?</p> <p>Regards,</p> <p>Nino</p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="0" /> <span class='post-likes'></span> </div> </div> <div id='post_5' itemprop='comment' itemscope itemtype='http://schema.org/Comment' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://forum.pkp.sfu.ca/u/Dimitris_Efstathiou'><span itemprop='name'>Dimitris_Efstathiou</span></a> </span> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2024-10-25T09:07:59Z' class='post-time'> October 25, 2024, 9:07am </time> <meta itemprop='dateModified' content='2024-10-25T09:07:59Z'> <span itemprop='position'>5</span> </span> </div> <div class='post' itemprop='text'> <p>Thanks <a class="mention" href="/u/orcalator">@orcalator</a>.</p> <p>The repository that is actively maintained by PKP and should currently be used is <a href="https://github.com/pkp/openid">https://github.com/pkp/openid</a></p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="0" /> <span class='post-likes'></span> </div> </div> <div id='post_6' itemprop='comment' itemscope itemtype='http://schema.org/Comment' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://forum.pkp.sfu.ca/u/orcalator'><span itemprop='name'>orcalator</span></a> </span> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2024-10-25T09:11:17Z' class='post-time'> October 25, 2024, 9:11am </time> <meta itemprop='dateModified' content='2024-10-25T09:11:17Z'> <span itemprop='position'>6</span> </span> </div> <div class='post' itemprop='text'> <p>Thank you for info. I will try stable-3.4.0 and get back with info. Btw. your link is pointing to the wrong URL although the text link is fine <img src="https://forum.pkp.sfu.ca/images/emoji/twitter/wink.png?v=12" title=":wink:" class="emoji" alt=":wink:" loading="lazy" width="20" height="20"></p> <p>Regards,</p> <p>Nino</p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="1" /> <span class='post-likes'>1 Like</span> </div> </div> <div id='post_7' itemprop='comment' itemscope itemtype='http://schema.org/Comment' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://forum.pkp.sfu.ca/u/orcalator'><span itemprop='name'>orcalator</span></a> </span> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2024-10-28T09:03:28Z' class='post-time'> October 28, 2024, 9:03am </time> <meta itemprop='dateModified' content='2024-10-28T09:03:28Z'> <span itemprop='position'>7</span> </span> </div> <div class='post' itemprop='text'> <p>Hello <a class="mention" href="/u/dimitris_efstathiou">@Dimitris_Efstathiou</a>,</p> <p>I just installed OJS 3.4 + openid plugin 3.4 from scratch and i can confirm it works fine. Now i have one question. I can’t get the plugin to sync. user data with my custom defined openid provider (<a href="https://aai.egi.eu/federation/egi/home" rel="noopener nofollow ugc">https://aai.egi.eu/federation/egi/home</a>). After successful authentication i’m redirected back to the OJS where i can choose to link account to the existing OJS account or register a new OJS account. In both cases data from openid provider is not transferred to the OJS, although i have “Enable OpenID provider user data synchronization” option checked in plugin settings. Data is also not synced when i do logout/login. Do you have an idea how this should work, maybe i’m missing something?</p> <p>Regards.</p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="0" /> <span class='post-likes'></span> </div> </div> <div id='post_8' itemprop='comment' itemscope itemtype='http://schema.org/Comment' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://forum.pkp.sfu.ca/u/Dimitris_Efstathiou'><span itemprop='name'>Dimitris_Efstathiou</span></a> </span> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2024-10-30T18:23:44Z' class='post-time'> October 30, 2024, 6:23pm </time> <meta itemprop='dateModified' content='2024-10-30T18:23:44Z'> <span itemprop='position'>8</span> </span> </div> <div class='post' itemprop='text'> <p>Thanks <a class="mention" href="/u/orcalator">@orcalator</a>,</p> <p>The feature should work on stable-3_4_0 branch.</p> <p>Does the provider you are using expose the <code>given_name</code> and <code>family_name</code> claims from the <code>profile</code> client scope?</p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="0" /> <span class='post-likes'></span> </div> </div> <div id='post_9' itemprop='comment' itemscope itemtype='http://schema.org/Comment' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://forum.pkp.sfu.ca/u/orcalator'><span itemprop='name'>orcalator</span></a> </span> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2024-10-31T09:27:51Z' class='post-time'> October 31, 2024, 9:27am </time> <meta itemprop='dateModified' content='2024-10-31T09:27:51Z'> <span itemprop='position'>9</span> </span> </div> <div class='post' itemprop='text'> <p>Hi <a class="mention" href="/u/dimitris_efstathiou">@Dimitris_Efstathiou</a>,</p> <p>The given_name and family_name claims are indeed available when the profile scope is requested. However, it’s important to clarify that these claims are provided from the UserInfo<br> endpoint, not from the ID token or the Access Token.</p> <p>Regards.</p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="1" /> <span class='post-likes'>1 Like</span> </div> </div> <div id='post_10' itemprop='comment' itemscope itemtype='http://schema.org/Comment' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://forum.pkp.sfu.ca/u/orcalator'><span itemprop='name'>orcalator</span></a> </span> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2024-11-04T09:28:52Z' class='post-time'> November 4, 2024, 9:28am </time> <meta itemprop='dateModified' content='2024-11-04T09:28:52Z'> <span itemprop='position'>10</span> </span> </div> <div class='post' itemprop='text'> <p>Hi <a class="mention" href="/u/dimitris_efstathiou">@Dimitris_Efstathiou</a>,</p> <p>Any clues on this? I’m not sure i was clear in the last post - so my provider exposes <code>given_name</code> and <code>family_name</code> claims but i’m still not getting them inside OJS (no sync.).</p> <p>Regards.</p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="0" /> <span class='post-likes'></span> </div> </div> <div id='post_11' itemprop='comment' itemscope itemtype='http://schema.org/Comment' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://forum.pkp.sfu.ca/u/Dimitris_Efstathiou'><span itemprop='name'>Dimitris_Efstathiou</span></a> </span> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2024-11-05T09:24:09Z' class='post-time'> November 5, 2024, 9:24am </time> <meta itemprop='dateModified' content='2024-11-05T09:24:09Z'> <span itemprop='position'>11</span> </span> </div> <div class='post' itemprop='text'> <p><a class="mention" href="/u/orcalator">@orcalator</a> yes the problem is what you are describing in your comment.</p> <p>Right now the code is taking the claims from the <code>ID token</code> directly, and it is not invoking the <code>UserInfo endpoint</code> of the provider.</p> <p>You can add an improvement request issue at the <a href="https://github.com/pkp/openid">plugin’s repo</a> regarding this.</p> <p>A working approach for this could be following:</p> <ul> <li> <p><strong>Use the already implemented UserInfo Endpoint Retrieval function</strong>: The <code>profile</code> scope is already included in the OpenID Connect request. After calling <code>validateAndExtractToken</code>, if the response lacks essential claims (<code>given_name</code>, <code>family_name</code>), fetch additional data from the UserInfo endpoint. Update <code>updateUserDetails</code> to incorporate this fetched data.</p> </li> <li> <p><strong>Modify <code>updateUserDetails</code> Logic</strong>: Update the function to check for claims in both <code>validateAndExtractToken</code> and the UserInfo response, if available. This will ensure that all relevant user attributes are synchronized.</p> </li> </ul> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="0" /> <span class='post-likes'></span> </div> </div> <div id='post_12' itemprop='comment' itemscope itemtype='http://schema.org/Comment' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://forum.pkp.sfu.ca/u/orcalator'><span itemprop='name'>orcalator</span></a> </span> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2024-11-07T12:06:58Z' class='post-time'> November 7, 2024, 12:06pm </time> <meta itemprop='dateModified' content='2024-11-07T12:13:11Z'> <span itemprop='position'>12</span> </span> </div> <div class='post' itemprop='text'> <p>Hi <a class="mention" href="/u/dimitris_efstathiou">@Dimitris_Efstathiou</a>,</p> <p>Thank you for info. I posted feature request in GitHub. Now, one more question regarding login/logout redirect URI. So in OJS you can login at homepage level:</p> <p>https://ojs_site/index.php/index/login</p> <p>or you can do it on a journal level:</p> <p>https://ojs_site/index.php/journal_name1/login<br> https://ojs_site/index.php/journal_name2/login<br> https://ojs_site/index.php/journal_name3/login</p> <p>but those are different URLs. Same for logout. Since provider uses one redirect_uri field for login and one for logout is there a way to support multiple redirect variants without using wildcards on provider side, since this might be a security risk?</p> <p>regards.</p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="0" /> <span class='post-likes'></span> </div> </div> <div id='post_13' itemprop='comment' itemscope itemtype='http://schema.org/Comment' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://forum.pkp.sfu.ca/u/Dimitris_Efstathiou'><span itemprop='name'>Dimitris_Efstathiou</span></a> </span> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2024-11-11T18:39:53Z' class='post-time'> November 11, 2024, 6:39pm </time> <meta itemprop='dateModified' content='2024-11-11T18:39:53Z'> <span itemprop='position'>13</span> </span> </div> <div class='post' itemprop='text'> <p>Hi <a class="mention" href="/u/orcalator">@orcalator</a>, thanks for opening the issue and for your questions!</p> <p>Are you asking if multiple <code>redirect_uri</code>s can’t be configured within the plugin? If that’s the case, you should specify the Keycloak client’s configuration URL (e.g., <code>http://localhost:8080/realms/NEW-PKP/.well-known/openid-configuration</code> if your Keycloak server is <code>http://localhost:8080</code>).</p> <p>Or, do you mean you’re unable to add multiple login/logout URIs on the Keycloak server itself?</p> <p>Thanks,<br> Dimitris</p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="0" /> <span class='post-likes'></span> </div> </div> <div id='post_14' itemprop='comment' itemscope itemtype='http://schema.org/Comment' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://forum.pkp.sfu.ca/u/orcalator'><span itemprop='name'>orcalator</span></a> </span> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2024-11-14T11:52:03Z' class='post-time'> November 14, 2024, 11:52am </time> <meta itemprop='dateModified' content='2024-11-14T11:52:03Z'> <span itemprop='position'>14</span> </span> </div> <div class='post' itemprop='text'> <p>Hi <a class="mention" href="/u/dimitris_efstathiou">@Dimitris_Efstathiou</a>,</p> <p>Keycloak can indeed handle multiple URIs directly on the server. However, to support multiple journals, this would require using wildcards. It’s best to avoid wildcard configurations, though, as the OAuth 2.0 Best Current Practice, especially in:</p> <p>Section 2.1: Protecting Redirect-Based Flows states: “When comparing client redirect URIs against pre-registered URIs, authorization servers MUST utilize exact string matching.”</p> <p>For more details,see <a href="https://datatracker.ietf.org/doc/html/draft-ietf-oauth-security-topics#section-2.1" rel="noopener nofollow ugc">https://datatracker.ietf.org/doc/html/draft-ietf-oauth-security-topics#section-2.1</a></p> <p>Ideally, we’d like to be able to configure a single login redirect URI and<br> a single post-logout redirect URI for multi-journal OJS deployments.</p> <p>Regards,</p> <p>Nino</p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="1" /> <span class='post-likes'>1 Like</span> </div> </div> <div id='post_15' itemprop='comment' itemscope itemtype='http://schema.org/Comment' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://forum.pkp.sfu.ca/u/Dimitris_Efstathiou'><span itemprop='name'>Dimitris_Efstathiou</span></a> </span> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2024-11-15T12:34:13Z' class='post-time'> November 15, 2024, 12:34pm </time> <meta itemprop='dateModified' content='2024-11-15T12:34:13Z'> <span itemprop='position'>15</span> </span> </div> <div class='post' itemprop='text'> <p><a class="mention" href="/u/orcalator">@orcalator</a> thanks so much!</p> <p>You could have a work-around for this, by continuedly adding a different url for any existing journals or new journal in the installation, if you want to avoid wildcards.</p> <p>But I would suggest that this could also be a new issue in the plugin page for improvement to consider.</p> <p>Regards!</p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="0" /> <span class='post-likes'></span> </div> </div> </div> </div> <footer class="container wrap"> <nav class='crawler-nav'> <ul> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/' itemprop="url">Home </a> </span> </li> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/categories' itemprop="url">Categories </a> </span> </li> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/guidelines' itemprop="url">Guidelines </a> </span> </li> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/tos' itemprop="url">Terms of Service </a> </span> </li> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/privacy' itemprop="url">Privacy Policy </a> </span> </li> </ul> </nav> <p class='powered-by-link'>Powered by <a href="https://www.discourse.org">Discourse</a>, best viewed with JavaScript enabled</p> </footer> <footer class="footer"> <div class="footer-sections"> <div class="footer-social"> <a class="social-icon" href="https://twitter.com/pkp"> <i class="fab fa-twitter"></i> </a> <a class="social-icon" href="https://www.facebook.com/publicknowledgeproject"> <i class="fab fa-facebook"></i> </a> <a class="social-icon" href="https://www.linkedin.com/company/public-knowledge-project/"> <i class="fab fa-linkedin"></i> </a> </div> <div class="footer-menu"> <div class="menu-column"> <h3 class="menu-heading">About</h3> <ul> <li> <a class="footer-section-link" title="Public Knowledge Project" href="https://pkp.sfu.ca/" target="_blank"> Public Knowledge Project </a> </li> <li> <a class="footer-section-link" title="PKP" href="https://pkpservices.sfu.ca/" target="_blank"> Publishing Services </a> </li> <li> <a class="footer-section-link" href="https://github.com/pkp/pkp-lib/issues" target="_blank"> File an Issue </a> </li> </ul> </div> <div class="menu-column"> <h3 class="menu-heading">Community</h3> <ul> <li> <a class="footer-section-link" title="Documentation Interest Group" href="https://pkp.sfu.ca/documentation-interest-group/" target="_blank"> Documentation Interest Group </a> </li> <li> <a class="footer-section-link" href="https://docs.pkp.sfu.ca/contributing/" target="_blank"> Contributing Documentation </a> </li> <li> <a class="footer-section-link" href="https://docs.pkp.sfu.ca/translating-guide/en/" target="_blank"> Translating Guide </a> </li> <li> <a class="footer-section-link" href="https://docs.pkp.sfu.ca/" target="_blank"> Documentation Hub </a> </li> </ul> </div> <div class="menu-column"> <h3 class="menu-heading">Download</h3> <ul> <li> <a class="footer-section-link" title="Open Journal Systems" href="https://pkp.sfu.ca/ojs/ojs_download/" target="_blank"> Open Journal Systems </a> </li> <li> <a class="footer-section-link" href="https://pkp.sfu.ca/omp/" target="_blank"> Open Monograph Press </a> </li> <li> <a class="footer-section-link" href="https://pkp.sfu.ca/ops/" target="_blank"> Open Preprint Server </a> </li> <li> <a class="footer-section-link" href="https://pkp.sfu.ca/ohs/" target="_blank"> Open Harvester Systems </a> </li> </ul> </div> </div> <div class="footer-logo-section"> <img src="https://forum.pkp.sfu.ca/uploads/default/original/3X/5/8/58014313a8317b5ead55db78b0baa78a043e2a07.png"> <p>The Public Knowledge Project is a Core Facility of Simon Fraser University</p> <p>8888 University Drive, Burnaby, B.C., Canada V5A 1S6</p> <p>We respectfully acknowledge that SFU occupies the unceded traditional territories of the Coast Salish peoples of the Musqueam, Squamish, and Tsleil-Waututh Nations.</p> </div> </div> <div class="footer-disclaimer"> <div class="footer-terms-link"><a href="https://www.sfu.ca/contact/terms-conditions.html">TERMS & CONDITIONS</a> © SIMON FRASER UNIVERSITY</div> <div class="footer-disclaimer-icons"> <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path d="M9.98156 0C12.7788 0 15.1603 0.976562 17.1244 2.92875C18.0644 3.86906 18.7791 4.94375 19.2672 6.15188C19.755 7.36031 19.9997 8.64281 19.9997 10C19.9997 11.3691 19.7581 12.6519 19.2766 13.8478C18.7944 15.0441 18.0828 16.1009 17.1428 17.0175C16.1669 17.9816 15.0597 18.72 13.8212 19.2319C12.5834 19.7437 11.3034 19.9997 9.98219 19.9997C8.66094 19.9997 7.39594 19.7472 6.1875 19.2406C4.97937 18.735 3.89594 18.0028 2.9375 17.0447C1.97906 16.0866 1.25 15.0059 0.75 13.8034C0.25 12.6009 0 11.3334 0 10C0 8.67844 0.252813 7.40781 0.75875 6.1875C1.26469 4.96719 2 3.875 2.96406 2.91062C4.86875 0.970625 7.20781 0 9.98156 0ZM10.0178 1.80375C7.73219 1.80375 5.80938 2.60156 4.24969 4.19656C3.46375 4.99437 2.85969 5.89 2.43719 6.88406C2.01406 7.87812 1.80313 8.91687 1.80313 10.0003C1.80313 11.0719 2.01406 12.1047 2.43719 13.0981C2.86 14.0928 3.46375 14.9797 4.24969 15.7594C5.03531 16.5394 5.92188 17.1341 6.91062 17.5453C7.89844 17.9559 8.93437 18.1613 10.0178 18.1613C11.0891 18.1613 12.1272 17.9534 13.1344 17.5366C14.1403 17.1194 15.0472 16.5187 15.8572 15.7331C17.4166 14.2094 18.1959 12.2987 18.1959 10.0006C18.1959 8.89344 17.9934 7.84594 17.5888 6.85781C17.1847 5.86969 16.595 4.98906 15.8219 4.21469C14.2138 2.6075 12.2797 1.80375 10.0178 1.80375ZM9.8925 8.33969L8.55281 9.03625C8.40969 8.73906 8.23438 8.53031 8.02625 8.41125C7.81781 8.2925 7.62437 8.23281 7.44563 8.23281C6.55312 8.23281 6.10625 8.82187 6.10625 10.0006C6.10625 10.5363 6.21938 10.9644 6.44531 11.2859C6.67156 11.6075 7.005 11.7684 7.44563 11.7684C8.02906 11.7684 8.43969 11.4825 8.67813 10.9113L9.91 11.5363C9.64813 12.0247 9.285 12.4084 8.82063 12.6881C8.35688 12.9681 7.84469 13.1078 7.285 13.1078C6.39219 13.1078 5.67156 12.8344 5.12406 12.2863C4.57656 11.7388 4.30281 10.9769 4.30281 10.0009C4.30281 9.04844 4.57969 8.29281 5.13313 7.73313C5.68656 7.17375 6.38594 6.89375 7.23156 6.89375C8.47 6.89313 9.35656 7.37531 9.8925 8.33969ZM15.6603 8.33969L14.3387 9.03625C14.1959 8.73906 14.02 8.53031 13.8119 8.41125C13.6031 8.2925 13.4034 8.23281 13.2137 8.23281C12.3209 8.23281 11.8741 8.82187 11.8741 10.0006C11.8741 10.5363 11.9875 10.9644 12.2134 11.2859C12.4394 11.6075 12.7725 11.7684 13.2137 11.7684C13.7966 11.7684 14.2075 11.4825 14.4453 10.9113L15.6953 11.5363C15.4219 12.0247 15.0525 12.4084 14.5887 12.6881C14.1244 12.9681 13.6184 13.1078 13.0709 13.1078C12.1659 13.1078 11.4431 12.8344 10.9019 12.2863C10.3594 11.7388 10.0887 10.9769 10.0887 10.0009C10.0887 9.04844 10.3653 8.29281 10.9194 7.73313C11.4725 7.17375 12.1719 6.89375 13.0172 6.89375C14.2553 6.89313 15.1369 7.37531 15.6603 8.33969Z" fill="#9A9C9F"></path></svg> <svg xmlns="http://www.w3.org/2000/svg" width="21" height="20" viewBox="0 0 21 20" fill="none"><path d="M10.7947 0C13.6034 0 15.9728 0.964063 17.9016 2.89281C19.8416 4.83344 20.8125 7.2025 20.8125 10C20.8125 12.8097 19.8597 15.1488 17.9547 17.0175C15.9309 19.0059 13.5444 20 10.7947 20C8.09188 20 5.74687 19.0175 3.75906 17.0531C1.795 15.0887 0.8125 12.7381 0.8125 10C0.8125 7.26219 1.795 4.89313 3.75906 2.89312C5.68781 0.964062 8.0325 0 10.7947 0ZM10.8303 1.80375C8.55656 1.80375 6.63406 2.60156 5.0625 4.19656C3.43125 5.86344 2.61594 7.79812 2.61594 10.0003C2.61594 12.2147 3.42531 14.1316 5.04406 15.7497C6.66313 17.3691 8.59156 18.1781 10.8297 18.1781C13.0556 18.1781 14.9966 17.3634 16.6512 15.7319C18.2228 14.22 19.0084 12.3094 19.0084 9.99969C19.0084 7.72594 18.2106 5.79187 16.6159 4.19625C15.0209 2.60125 13.0922 1.80375 10.8303 1.80375ZM13.5091 7.51781V11.6069H12.3666V16.4637H9.25906V11.6072H8.11656V7.51781C8.11656 7.33906 8.17906 7.1875 8.30375 7.0625C8.42906 6.93781 8.58094 6.875 8.75906 6.875H12.8666C13.0331 6.875 13.1822 6.9375 13.3128 7.0625C13.4431 7.1875 13.5091 7.33937 13.5091 7.51781ZM9.41937 4.94656C9.41937 4.00656 9.88344 3.53594 10.8125 3.53594C11.7416 3.53594 12.2053 4.00594 12.2053 4.94656C12.2053 5.875 11.7409 6.33937 10.8125 6.33937C9.88406 6.33937 9.41937 5.875 9.41937 4.94656Z" fill="#9A9C9F"></path></svg> </div> <div class="footer-credits-line"> <a href="https://creativecommons.org/licenses/by/4.0/">CC-BY 4.0</a> | Website by <a href="https://affinitybridge.com/" target="_blank" rel="noopener">Affinity Bridge</a> </div> </div> </footer> <div class="buorg"><div>Unfortunately, <a href="https://www.discourse.org/faq/#browser">your browser is unsupported</a>. Please <a href="https://browsehappy.com">switch to a supported browser</a> to view rich content, log in and reply.</div></div> </body> </html>