From f604637b364ce1d47da8e963886f4277948b7b99 Mon Sep 17 00:00:00 2001
From: Jonas Groeger <jonas.groeger@codecentric.de>
Date: Mon, 30 Aug 2021 10:30:41 +0200
Subject: [PATCH] fix(docs): Authorization not Authentication as auth header

'tis but a typo
---
 docs/getting-started/authentication.mdx                | 2 +-
 docs/getting-started/receiving/destination.mdx         | 2 +-
 docs/getting-started/receiving/download-submission.mdx | 4 ++--
 docs/getting-started/receiving/query.mdx               | 2 +-
 docs/getting-started/sending/attachments.mdx           | 4 ++--
 docs/getting-started/sending/get-destination.mdx       | 2 +-
 docs/getting-started/sending/start-submission.mdx      | 4 ++--
 docs/getting-started/sending/submit.mdx                | 4 ++--
 8 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/docs/getting-started/authentication.mdx b/docs/getting-started/authentication.mdx
index 5db48559b..77a6bc284 100644
--- a/docs/getting-started/authentication.mdx
+++ b/docs/getting-started/authentication.mdx
@@ -15,7 +15,7 @@ Fast alle Anfragen an die FIT-Connect Submission API müssen authentifiziert wer
 Hierfür ist ein Access Token notwendig, das beim OAuth-Dienst über die hierfür vorgesehene `Token URL` abgerufen werden kann (siehe Abschnitt `AUTHENTICATION` in der [Schnittstellenspezifikation](../apis/delivery-service)).
 Für den Abruf von Access Tokens ist die [Konfiguration eines API-Client im Self-Service-Portal](../account.mdx) nötig.
 
-Das Token kann anschließend bei Anfragen über den `Authentication` Header mitgeschickt werden.
+Das Token kann anschließend bei Anfragen über den `Authorization` Header mitgeschickt werden.
 Da ein Token **max. 30 Minuten** gültig ist, muss dieses rechtzeitig erneuert werden.
 Wenn keine spezifischer Scope angefragt wird (siehe nächster Abschnitt), enthält der Access Token alle Scopes, die zu diesem Zeitpunkt beim Client im Self-Service-Portal hinterlegt wurden.
 
diff --git a/docs/getting-started/receiving/destination.mdx b/docs/getting-started/receiving/destination.mdx
index 0ef3d90b7..5e3b388a1 100644
--- a/docs/getting-started/receiving/destination.mdx
+++ b/docs/getting-started/receiving/destination.mdx
@@ -97,7 +97,7 @@ Für die Bearbeitung über die API sind folgende Voraussetzung zu erfüllen:
 $ export SERVICE_URL=...
 $ export JWT_TOKEN=eyJhbGciOiJIUzI1NiJ9.eyJJc3N1Z...NL-MKFrDGvn9TvkA
 $ curl \
-    -H "Authentication: Bearer $JWT_TOKEN" \
+    -H "Authorization: Bearer $JWT_TOKEN" \
     -H "Content-Type: application/json" \
     --data "@./myDestination.json" \
     -X POST $SERVICE_URL/destinations
diff --git a/docs/getting-started/receiving/download-submission.mdx b/docs/getting-started/receiving/download-submission.mdx
index 04c623d3e..c32740914 100644
--- a/docs/getting-started/receiving/download-submission.mdx
+++ b/docs/getting-started/receiving/download-submission.mdx
@@ -15,7 +15,7 @@ $ export SERVICE_URL=<URL>
 $ export JWT_TOKEN=eyJhbGciOiJIUzI1NiJ9.eyJJc3N1Z...NL-MKFrDGvn9TvkA
 $ export SUBMISSION_ID=9d618546-0ff7-4e93-9f15-714e5dd1bf12
 $ curl \
-    -H "Authentication: Bearer $JWT_TOKEN" \
+    -H "Authorization: Bearer $JWT_TOKEN" \
     -H "Content-Type: application/json" \
     -X GET $SERVICE_URL/submissions/$SUBMISSION_ID
 > {
@@ -45,7 +45,7 @@ $ export JWT_TOKEN=eyJhbGciOiJIUzI1NiJ9.eyJJc3N1Z...NL-MKFrDGvn9TvkA
 $ export SUBMISSION_ID=9d618546-0ff7-4e93-9f15-714e5dd1bf12
 $ export ATTACHMENT_ID=122668ad-3081-497c-9358-7ce4b6144b02
 $ curl \
-    -H "Authentication: Bearer $JWT_TOKEN" \
+    -H "Authorization: Bearer $JWT_TOKEN" \
     -H "Content-Type: application/jose" \
     -X GET $SERVICE_URL/submissions/$SUBMISSION_ID/attachments/$ATTACHMENT_ID
 > 6r4H2H_WIzCv8Pd-uetmcbK...iVBKF3ylHRUahmZ
diff --git a/docs/getting-started/receiving/query.mdx b/docs/getting-started/receiving/query.mdx
index 0ad761d47..dc184a6a1 100644
--- a/docs/getting-started/receiving/query.mdx
+++ b/docs/getting-started/receiving/query.mdx
@@ -40,7 +40,7 @@ In diesem Fall werden nur die Submissions zurückgegeben, die zum angegebenen Zu
 $ export SERVICE_URL=<URL>
 $ export JWT_TOKEN=eyJhbGciOiJIUzI1NiJ9.eyJJc3N1Z...NL-MKFrDGvn9TvkA
 $ curl \
-    -H "Authentication: Bearer $JWT_TOKEN" \
+    -H "Authorization: Bearer $JWT_TOKEN" \
     -H "Content-Type: application/json" \
     -X GET $SERVICE_URL/submissions
 >  {
diff --git a/docs/getting-started/sending/attachments.mdx b/docs/getting-started/sending/attachments.mdx
index 801067709..d2d6a9f09 100644
--- a/docs/getting-started/sending/attachments.mdx
+++ b/docs/getting-started/sending/attachments.mdx
@@ -29,7 +29,7 @@ In dem folgenden Ausschnitt wird dargestellt, wie eine bereits verschlüsselte D
   $ export ATTACHMENT_ID=90ae8309-2102-4e81-a325-ceda480d0e9d
   $ export ENC_FILE_CONTENT=6r4H2H_WIzCv8Pd-uetmcbK...iVBKF3ylHRUahmZ
   $ curl \
-      -H "Authentication: Bearer $JWT_TOKEN" \
+      -H "Authorization: Bearer $JWT_TOKEN" \
       -H "Content-Type: application/jose" \
       --data "$ENC_FILE_CONTENT" \
       -X PUT $SERVICE_URL/submissions/$SUBMISSION_ID/attachments/$ATTACHMENT_ID
@@ -55,7 +55,7 @@ In dem folgenden Ausschnitt wird dargestellt, wie eine bereits verschlüsselte D
       timeout: 2000,
       headers: {
         'Content-Type': 'application/jose',
-        'Authentication': `Bearer ${token}`,
+        'Authorization': `Bearer ${token}`,
       }
     }
   )
diff --git a/docs/getting-started/sending/get-destination.mdx b/docs/getting-started/sending/get-destination.mdx
index c5375a1f5..480cb690c 100644
--- a/docs/getting-started/sending/get-destination.mdx
+++ b/docs/getting-started/sending/get-destination.mdx
@@ -41,7 +41,7 @@ $ export SERVICE_URL=...
 $ export JWT_TOKEN=eyJhbGciOiJIUzI1NiJ9.eyJJc3N1Z...NL-MKFrDGvn9TvkA
 $ export DESTINATION_ID=7a2668ad-3081-407c-9358-7ce4b6144b02
 $ curl \
-    -H "Authentication: Bearer $JWT_TOKEN" \
+    -H "Authorization: Bearer $JWT_TOKEN" \
     -H "Content-Type: application/json" \
     -X GET $SERVICE_URL/destinations/$DESTINATION_ID
 
diff --git a/docs/getting-started/sending/start-submission.mdx b/docs/getting-started/sending/start-submission.mdx
index 6e2fb7690..006880556 100644
--- a/docs/getting-started/sending/start-submission.mdx
+++ b/docs/getting-started/sending/start-submission.mdx
@@ -31,7 +31,7 @@ $ export SERVICE_URL=...
 $ export JWT_TOKEN=eyJhbGciOiJIUzI1NiJ9.eyJJc3N1Z...NL-MKFrDGvn9TvkA
 $ export DESTINATION_ID=7a2668ad-3081-407c-9358-7ce4b6144b02
 $ curl \
-    -H "Authentication: Bearer $JWT_TOKEN" \
+    -H "Authorization: Bearer $JWT_TOKEN" \
     -H "Content-Type: application/json" \
     --data "{ \"destinationId\": \"$DESTINATION_ID\", \"announcedContentStructure\": { \"data\": true, \"attachments\": [\"1da99641-2067-4e8b-b049-91b2a6c90544\", \"538a1365-092e-4d80-93b9-90eb8c1f5982\"] }, \"serviceType\": { \"name\": \"Bauantrag\", \"identifier\": \"urn:de:fim:leika:leistung:99010003001006\" } }" \
     -X POST $SERVICE_URL/submissions
@@ -79,7 +79,7 @@ axios.post(
     baseURL,
     timeout: 2000,
     headers: {
-      'Authentication': `Bearer ${token}`
+      'Authorization': `Bearer ${token}`
     }
   }
 )
diff --git a/docs/getting-started/sending/submit.mdx b/docs/getting-started/sending/submit.mdx
index d57f07f2e..3fb70f0b6 100644
--- a/docs/getting-started/sending/submit.mdx
+++ b/docs/getting-started/sending/submit.mdx
@@ -32,7 +32,7 @@ $ export SERVICE_URL=...
 $ export JWT_TOKEN=eyJhbGciOiJIUzI1NiJ9.eyJJc3N1Z...NL-MKFrDGvn9TvkA
 $ export SUBMISSION_ID=63f0c991-0635-4e18-8a4b-fb0c01de9f5c
 $ curl \
-    -H "Authentication: Bearer $JWT_TOKEN" \
+    -H "Authorization: Bearer $JWT_TOKEN" \
     -H "Content-Type: application/json" \
     --data '{ "encryptedMetadata": "6r4H2H_WIzCv8Pd-uetmcbK...iVBKF3ylHRUahmZ" }' \
     -X PUT $SERVICE_URL/submissions/$SUBMISSION_ID
@@ -59,7 +59,7 @@ axios.put(
     timeout: 2000,
     headers: {
       'Content-Type': 'application/json',
-      'Authentication': `Bearer ${token}`,
+      'Authorization': `Bearer ${token}`,
     }
   }
 )
-- 
GitLab