PHP code example of itk-dev / os2forms_nemlogin_openid_connect
1. Go to this page and download the library: Download itk-dev/os2forms_nemlogin_openid_connect library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
itk-dev / os2forms_nemlogin_openid_connect example snippets
// Enable local test mode
$settings['os2forms_nemlogin_openid_connect']['local_test_mode'] = TRUE;
// Define local test users
// User id => user info (claims)
$settings['os2forms_nemlogin_openid_connect']['local_test_users'] = [
'1234567890' => [
'cpr' => '1234567890',
'name' => 'John Doe',
],
'another-user' => [
…
],
];
// Override settings for specific plugins:
$settings['os2forms_nemlogin_openid_connect']['my-plugin-id']['local_test_mode'] = FALSE;
// Define local test users
// User id => user info (claims)
$settings['os2forms_nemlogin_openid_connect']['another-plugin-id']['local_test_users'] = [
'user087' => [
'id' => 'user087',
'name' => 'User 87',
],
];