Open kyo-jin opened 2 years ago
This change resolved my issue, Otherwise, I would keep getting the following error while contacting the Neptune endpoint
The server returned status code '403' when status code '101' was expected.
This PR #2 should be reopened and merged for sure.
The session token is missing from the call to
Sign()
, which causes authentication to fail when using temporary IAM credentials (e.g. using SSO to get temporary credentials).https://github.com/aws/amazon-neptune-gremlin-dotnet-sigv4/blob/7a903ac0e28df2e1e6520add3197f3429c3a3693/src/SigV4RequestSigner.cs#L81-L87
Since
Sign()
does set the session token if one is provided, the fix should be straightforward: