Setup of OAuth2 sign-in

The curl and openssl PHP extensions must be loaded if you want to use this feature.

Checkup of your environement

Requirement Value / Description
PHP_VERSION>=5.6.0
opensslextension loaded
curlextension loaded
oauth2_enabledFALSE
oauth2_providergoogle
oauth2_client_idEmpty
oauth2_client_secretEmpty
curl.cainfoNot found
openssl.cafileNot found
openssl_get_cert_locationsExists
default_cert_fileFound
default_cert_file_envNot found
default_cert_dirFound
default_cert_dir_envNot found
default_private_dirNot found
default_default_cert_areaFound
ini_cafileNot found
ini_capathNot found

Additional information

Setup Google+ API

Instruction for Google API:

Setup Jorani

Setup Jorani by editing application/config/config.php

Setup your PHP environment

Depending on the version you are using, PHP will try to search for a bundle of certicates to be trusted. It is a file containing a list of public keys emitted by servers and APIs. Of course, the Google API must be listed prior trying to use the Google+ API for authentication purposes.

In case your system is not up-to-date, Jorani is bundled with a list of trusted certicates into assets/keys/cacert.pem. The absolute path to this file must be known by either:

You should modify the PHP.ini file depending on the version of PHP, as follow for PHP 5.6+:

[openssl]
; The location of a Certificate Authority (CA) file on the local filesystem
; to use when verifying the identity of SSL/TLS peers. Most users should
; not specify a value for this directive as PHP will attempt to use the
; OS-managed cert stores in its absence. If specified, this value may still
; be overridden on a per-stream basis via the "cafile" SSL stream context
; option.
openssl.cafile=C:\wamp\www\auth\cacert.pem

; If openssl.cafile is not specified or if the CA file is not found, the
; directory pointed to by openssl.capath is searched for a suitable
; certificate. This value must be a correctly hashed certificate directory.
; Most users should not specify a value for this directive as PHP will
; attempt to use the OS-managed cert stores in its absence. If specified,
; this value may still be overridden on a per-stream basis via the "capath"
; SSL stream context option.
;openssl.capath=

Or as follow for older versions of PHP:

[curl]
; A default value for the CURLOPT_CAINFO option. This is required to be an
; absolute path.
curl.cainfo=C:\wamp\www\auth\cacert.pem

Of course, adapt the path according to your environment.

Troubleshooting

In case of error, here are some additional steps: