BlogHow-toCivipass

How to configure Civipass: Client ID, secret, the pilot and production

Where to enter the GSIS credentials, what "Test the connection" tells you, how the pilot (test.gsis.gr) and production (oauth2.gsis.gr) differ, and when to switch.

3 min readPerforks

The Civipass settings with the pilot and production switch, the Client ID and the secret, and the Test the connection button

Once the EDA request is approved, Civipass needs two things from the EDA: the username, which is the Client ID, and the password you set there, which is the Client secret. The pilot and production environments each have their own, and Civipass keeps both.

Enter the pilot credentials

  1. Open Settings › Civipass › Connection to the GSIS.
  2. Under Pilot (test.gsis.gr), enter the EDA username as Client ID (EDA username) and the pilot password as Client secret (EDA password). Save.
  3. Press Test the connection next to those fields.

A saved secret is never shown again; the field reads Saved — leave empty to keep, and there is a box to delete it.

What "Test the connection" says

The test sends the Client ID and secret, with a made-up code, to the GSIS token address of that environment. The answers:

  • … the GSIS accepted the Client ID and secret, and its sign-in page opens for this site. All good.
  • … the GSIS refused the Client ID or secret. Check them in the EDA (username and the password you set there), and that the request is active for this environment — pilot and production have separate passwords.
  • … the secret is accepted, but the GSIS sign-in page refuses this Client ID, so people would see an "OAuth2 error" page there. Check in the EDA that the request is active for this environment.
  • … the GSIS could not be reached or is not working right now. Check that this server can make outgoing HTTPS connections, and try again later.
  • … the daily call limit of the Interoperability Centre has been reached. Ask for a higher limit through the EDA.
  • … enter both the Client ID and the secret first.

Try a sign-in on the pilot

With Environment in use set to Pilot, the sign-in button sends people to test.gsis.gr. Try a sign-in from the login screen, linking an existing account from the profile, and signing out. Remember that accounts which manage the site (administrators, editors) cannot sign in with TaxisNet unless you turn that on under Accounts that manage the site; test with an ordinary account.

Switch to production

Use the pilot until the GSIS sends the document that starts production. Then:

  1. Set a production password in the EDA.
  2. Under Production (oauth2.gsis.gr), enter the Client ID and that password, save, and press Test the connection.
  3. Set Environment in use to Production and save.

Update the site's privacy policy with the text Civipass suggests under Settings › Privacy; see what Civipass stores.

The other settings

The same page has the account rules: whether an account is created at the first sign-in, the role new accounts get, whether new people must give and confirm an e-mail address, which details are kept, where people go after signing in, and whether signing out of the site also signs out of the GSIS. The defaults are listed in installing Civipass.

Test servers

A developer can point every sign-in at a test server with CIVIPASS_DEV_BASE in wp-config.php. It is honoured only when WP_ENVIRONMENT_TYPE is local, development or staging, so a forgotten setting can never send a live site's sign-ins elsewhere. While it is set, the settings page warns: CIVIPASS_DEV_BASE is set in wp-config.php: every sign-in goes to a test server instead of the GSIS. Remove it before going live (it is ignored when WP_ENVIRONMENT_TYPE is production).