You are here

function hybridauth_provider_esia_configuration_callback in HybridAuth Social Login 7.2

1 string reference to 'hybridauth_provider_esia_configuration_callback'
ESIA.inc in plugins/provider/ESIA/ESIA.inc
HybridAuth ESIA specific settings.

File

plugins/provider/ESIA/ESIA.inc, line 54
HybridAuth ESIA specific settings.

Code

function hybridauth_provider_esia_configuration_callback(&$config, $provider_id) {
  $config['oauth2_server'] = variable_get('hybridauth_provider_' . $provider_id . '_oauth2_server', 'https://server.example.org');
  $config['certificate_path'] = variable_get('hybridauth_provider_' . $provider_id . '_certificate_path', '');
  $config['private_key_path'] = variable_get('hybridauth_provider_' . $provider_id . '_private_key_path', '');
  $config['private_key_pass'] = variable_get('hybridauth_provider_' . $provider_id . '_private_key_pass', '');
  $config['scope'] = variable_get('hybridauth_provider_' . $provider_id . '_scope', 'openid http://esia.gosuslugi.ru/usr_inf');
  $config['timestamp'] = format_date(REQUEST_TIME, 'custom', 'Y.m.d H:i:s O');
}