public static function Utilities::getVariableArray in OAuth2 Login 8
1 call to Utilities::getVariableArray()
File
- src/
Utilities.php, line 197
Class
Namespace
Drupal\oauth2_loginCode
public static function getVariableArray($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',
'Oauth_default_value' => 'miniorange_oauth_default_mapping',
);
}
else {
if ($class_name == "mo_options_enum_signin_settings") {
$class_object = array(
'Base_URL_value' => 'miniorange_oauth_client_base_url',
);
}
}
}
return $class_object;
}