Skip to content

Commit

Permalink
Move sigv4 specific note to trait docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kstich committed Sep 6, 2023
1 parent 0a67811 commit 0af2ca4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/source-2.0/aws/aws-auth.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@ AWS Authentication Traits

This document defines AWS authentication schemes.

If a request contains the ``Authorization`` header or a query string parameter
with the name of ``X-Amz-Algorithm`` containing the value ``AWS4-HMAC-SHA256``,
the request will undergo authentication and be rejected if it fails. Otherwise,
if the :ref:`optionalAuth-trait` is applied, the service shall operate on the
unauthenticated request.

.. smithy-trait:: aws.auth#sigv4
.. _aws.auth#sigv4-trait:

Expand Down Expand Up @@ -41,6 +35,12 @@ Trait value
NOT be empty. This value SHOULD match the ``arnNamespace`` property
of the :ref:`aws.api#service-trait`.

If a request contains the ``Authorization`` header or a query string parameter
with the name of ``X-Amz-Algorithm`` containing the value ``AWS4-HMAC-SHA256``,
the request will undergo authentication and be rejected if it fails. Otherwise,
if the :ref:`optionalAuth-trait` is applied, the service shall operate on the
unauthenticated request.

.. code-block:: smithy
$version: "2"
Expand Down

0 comments on commit 0af2ca4

Please sign in to comment.