diff --git a/docs/getting-started/authentication.mdx b/docs/getting-started/authentication.mdx index 5db48559bea8377cf4f73163e6b5c3368b5a7b3a..77a6bc284e9e0cca51f670508ba9d16705a79b53 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 0ef3d90b7631e7018d8b3be947a1bba6c1e42418..5e3b388a1fc41e9f8c3e0ae21affa12b65c1b865 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 04c623d3e066e3c1439c1f5353d4c9c1baecd23f..c327409140c60d79ad288c97abeac70b927951be 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 0ad761d47a6de00764ef17f4de4d1ca9a64c5abb..dc184a6a18f763453dd8373c94b4533b9a87ba78 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 80106770915f0f2a904c2b12d1f493704f420b5a..d2d6a9f092b2f549bbe61f315053a5596e8b492e 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 c5375a1f57fb23a988c709e53ab5f7f3dfe57c40..480cb690c76edb9e08862f8b44671fe5d41ab794 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 6e2fb769038c8669d7cbfa8cf39bd0294cb926e1..0068805566ae572ec19a1ca17611283511e3b4c0 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 d57f07f2e0dd500df4f8160f6f7d5373955b288b..3fb70f0b638411c3313e9f1b30740763f1f03b86 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}`, } } )