You are here

public static function Utilities::getVariableNames in Drupal OAuth & OpenID Connect Login - OAuth2 Client SSO Login 7

1 call to Utilities::getVariableNames()
mo_get_configuration_array in ./miniorange_config.php

File

includes/Utilities.php, line 247

Class

Utilities

Code

public static function getVariableNames($class_name) {
  if ($class_name == "mo_options_enum_client_configuration") {
    $class_object = array(
      'App_selected' => 'miniorange_oauth_client_app',
      'App_name' => 'miniorange_auth_client_app_name',
      'Display_link' => 'miniorange_auth_client_display_name',
      'Client_ID' => 'miniorange_auth_client_client_id',
      'Client_secret' => 'miniorange_auth_client_client_secret',
      'Client_scope' => 'miniorange_auth_client_scope',
      'Authorized_endpoint' => 'miniorange_auth_client_authorize_endpoint',
      'Access_token_endpoint' => 'miniorange_auth_client_access_token_ep',
      'Userinfo_endpoint' => 'miniorange_auth_client_user_info_ep',
      'Callback_url' => 'miniorange_auth_client_callback_uri',
      'credentials_via_header' => 'miniorange_oauth_send_with_header_oauth',
      'credentials_via_body' => 'miniorange_oauth_send_with_body_oauth',
      'Enable_login_with_oauth' => 'miniorange_oauth_enable_login_with_oauth',
    );
  }
  else {
    if ($class_name == "mo_options_enum_attribute_mapping") {
      $class_object = array(
        'Email_attribute_value' => 'miniorange_oauth_client_email_attr_val',
        'Username_attribute_value' => 'miniorange_oauth_client_name_attr_val',
      );
    }
    else {
      if ($class_name == "mo_options_enum_signin_settings") {
        $class_object = array(
          'Base_URL_value' => 'miniorange_oauth_client_base_url',
        );
      }
    }
  }
  return $class_object;
}