diff --git a/core/modules/rest/src/Plugin/views/display/RestExport.php b/core/modules/rest/src/Plugin/views/display/RestExport.php
index 74a2762..b0c8836 100644
--- a/core/modules/rest/src/Plugin/views/display/RestExport.php
+++ b/core/modules/rest/src/Plugin/views/display/RestExport.php
@@ -227,7 +227,10 @@ public function getContentType() {
    *   An array to use as value for "#options" in the form element.
    */
   public function getAuthOptions() {
-    return array_combine($this->authenticationProviders, $this->authenticationProviders);
+    // Variable contains conformity of authentication provider and module name.
+    $providers = array_keys($this->authenticationProviders);
+
+    return array_combine($providers, $providers);
   }
 
   /**
diff --git a/core/modules/rest/src/Tests/Update/RestExportAuthUpdateTest.php b/core/modules/rest/src/Tests/Update/RestExportAuthUpdateTest.php
index 92cc917..b331ce3 100644
--- a/core/modules/rest/src/Tests/Update/RestExportAuthUpdateTest.php
+++ b/core/modules/rest/src/Tests/Update/RestExportAuthUpdateTest.php
@@ -30,7 +30,7 @@ public function testUpdate() {
     // Get particular view.
     $view = \Drupal::entityTypeManager()->getStorage('view')->load('rest_export_with_authorization');
     $displays = $view->get('display');
-    $this->assertIdentical($displays['rest_export_1']['display_options']['auth']['basic_auth'], 'basic_auth', 'Basic authentication is set as authentication method.');
+    $this->assertIdentical($displays['rest_export_1']['display_options']['auth'], ['basic_auth'], 'Basic authentication is set as authentication method.');
   }
 
 }
diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.rest_export_with_authorization.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.rest_export_with_authorization.yml
index bef857f..9f8b19d 100644
--- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.rest_export_with_authorization.yml
+++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.rest_export_with_authorization.yml
@@ -204,7 +204,7 @@ display:
       display_extenders: {  }
       path: unpublished-content
       auth:
-        basic_auth: basic_auth
+        - basic_auth
     cache_metadata:
       max-age: -1
       contexts:
