BlogGetting startedCivipass

How to install Civipass, and what your site needs

What Civipass needs (WordPress 6.2, PHP 7.4, HTTPS, a public body), how to install it, where the return address for the GSIS request is, and why to move the encryption key to wp-config.php.

3 min readPerforks

A checklist of what Civipass needs: WordPress 6.2, PHP 7.4, HTTPS and a public body

Civipass lets citizens and businesses sign in to the WordPress site of a Greek public body with their TaxisNet credentials, through the official OAuth 2.0 service of the General Secretariat for Information Systems (GSIS). The free plugin does the sign-in; this article gets it installed and ready for the request to the GSIS.

Requirements

  • WordPress 6.2 or newer, PHP 7.4 or newer, on HTTPS.
  • A body of the public or wider public sector. The GSIS gives the service only to such bodies, each with its own credentials; a private company cannot get them, so it cannot use Civipass.
  • An authorised employee of the body with access to the EDA, the Interoperability Centre's request application. The body makes the request; the site's contractor usually installs and configures the plugin.

No PHP extension is needed for the encryption: WordPress ships sodium_compat, so Civipass works without the sodium extension.

Install

  1. Install and activate Civipass from Plugins › Add New. (The free plugin has been submitted to WordPress.org; until it is published there, ask us for the zip.)
  2. Open Settings › Civipass. At the top is the Return address for the EDA request, with a Copy button:
    https://www.example.gov.gr/?civipass=callback
    It is your site's home address followed by ?civipass=callback. You will declare it in the request to the GSIS, both as the redirect URL of the production system and as the redirect URL of the pilot test.
  3. Leave the rest for now: the Client ID and secret come from the EDA once the request is approved. See requesting the GSIS OAuth 2.0 service.

Move the encryption key to wp-config.php

Civipass stores the GSIS secrets and every linked tax number encrypted (libsodium). On activation it makes the encryption key and keeps it in the database. For stronger protection, the settings page shows a line like

define( 'CIVIPASS_KEY', '…' );

Copy it into wp-config.php, above That's all, stop editing!. It is the same key the site already uses, so nothing has to be entered again, and from then on a copy of the database alone reveals neither the secrets nor the tax numbers. Keep it safe: if the key is lost or changed, the stored data cannot be read. The plugin then warns: Civipass: the encryption key changed, so the saved GSIS passwords and the linked tax numbers can no longer be read. Put the previous CIVIPASS_KEY back in wp-config.php, or enter the passwords again; linked people will have to link their accounts again.

What is on by default

SettingDefault
Environment in usePilot (test.gsis.gr)
Show the TaxisNet button on the WordPress login screenon
Create an account the first time someone signs in with TaxisNetoff: only people who linked an existing account from their profile can sign in
Role of new accountsSubscriber; only roles that cannot manage the site are offered
Ask new people for their e-mail address and confirm it by e-mailon (the GSIS gives no e-mail address)
Also keep father's name, mother's name and year of birthoff
Also sign out of the GSIS when signing out of the siteon
Let administrators, editors and other accounts that manage the site sign in with TaxisNetoff
Delete the settings and every TaxisNet link when the plugin is deletedoff

Nothing reaches the GSIS until a person presses a sign-in button or an administrator presses Test the connection. Civipass sends no data to Perforks.

Next

Make the EDA request, then enter the credentials and test on the pilot.