Plugin per interfacciare Wordpress a OJS

assets Initial import: WP OJS SSO Bridge plugin v1.1.0 3 months ago
includes Release 1.2.0: quick subscription filters on Users screen. 2 months ago
languages Release 1.2.1: include OIDC well-known MU-plugin in repository. 2 months ago
mu-plugins Release 1.2.1: include OIDC well-known MU-plugin in repository. 2 months ago
releases Add release zip for v1.2.0. 2 months ago
.gitignore Add release zip for v1.2.0. 2 months ago
readme.txt Release 1.2.1: include OIDC well-known MU-plugin in repository. 2 months ago
uninstall.php Initial import: WP OJS SSO Bridge plugin v1.1.0 3 months ago
wp-ojs-sso-bridge.php Release 1.2.1: include OIDC well-known MU-plugin in repository. 2 months ago
readme.txt
=== WP OJS SSO Bridge ===
Contributors: guitex
Tags: ojs, sso, openid-connect, journal, subscription
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 1.2.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Bridges WordPress and Open Journal Systems (OJS) via OpenID Connect, managing journal subscription status as an OIDC claim.

== Description ==

WP OJS SSO Bridge turns your WordPress site into an OpenID Connect identity provider for OJS (Open Journal Systems). It allows you to:

* Manage a boolean "subscription active" flag per user from the WordPress admin
* Expose the subscription status as a custom OIDC claim
* Add a subscription request checkbox to the WordPress registration form
* Collect membership data (personal details, membership type, consents) during registration or from the user profile
* Notify admins when users request subscriptions
* Bulk-activate or deactivate subscriptions from the users list
* Store the bank transfer receipt and the student certificate in the Media Library under `wp-content/uploads/file-utenti/{user}/bonifico` and `.../certificato` (direct URLs follow normal WordPress upload visibility; restrict at the web server if you need non-public files)

**Requires** the [OpenID Connect Server](https://wordpress.org/plugins/openid-connect-server/) plugin by Automattic.

With the site language set to **Italiano** (Impostazioni → Generale), the OIDC *Authorize* / consent page (Ciao [ … ] Vuoi accedere… / Autorizza) is shown in Italian via this plugin; the upstream plugin ships those strings in English.

== Installation ==

1. Install and activate the "OpenID Connect Server" plugin by Automattic.
2. Install this plugin:
   * **Release ZIP** (wp-admin → Plugins → Add New → Upload): installs only the main plugin under `/wp-content/plugins/`.
   * **Git clone / manual copy**: upload the `wp-ojs-sso-bridge` folder to `/wp-content/plugins/`.
3. **Must-use plugin (required for OJS):** copy `mu-plugins/guitex-oidc-well-known.php` from this repository into `/wp-content/mu-plugins/` (not included in the release ZIP). See `mu-plugins/README.txt`.
4. Activate the plugin through the 'Plugins' menu.
5. Go to Settings > OJS SSO Bridge and configure your OJS client credentials.
6. Generate RSA keys for the OIDC server: `wp eval 'OIDC\generateKeys();'`

== Changelog ==

= 1.2.1 =
* MU-plugin `guitex-oidc-well-known.php` (JWKS + OpenID discovery) included in the repository under `mu-plugins/`; install manually to `wp-content/mu-plugins/`.
* Release ZIP unchanged: still contains only the main plugin (mu-plugins are excluded from upload).

= 1.2.0 =
* Quick-filter links on the Users screen: "Subscription requested" and "Active subscription" (with counts).
* Removed the hard-to-find subscription dropdown above the users table.

= 1.1.0 =
* Ricevuta bonifico obbligatoria per la richiesta di sottoscrizione: upload in Media in `file-utenti/{slug-utente}/bonifico`.
* Documento studente: stesso meccanismo in `file-utenti/{slug-utente}/certificato` (i vecchi file sotto `ojs-sso-bridge/{id}/` restano scaricabili fino a sostituzione).
* Colonna "Subscription documents" nella lista utenti con link a bonifico e certificato (o trattino se mancante).

= 1.0.1 =
* Testi della schermata di consenso OpenID Connect Server (Autorizza, messaggio per client OJS, titolo “OIDC Connect”) in italiano quando la lingua del sito inizia con `it`.

= 1.0.0 =
* Initial release.