Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace AuthTokens.basic with NeptuneAuthToken in OpenCypher #259

Merged
merged 1 commit into from
Apr 29, 2024

Conversation

ryn5
Copy link
Contributor

@ryn5 ryn5 commented Apr 16, 2024

Summary

Automatical renewal of AWS Signature v4 authentication tokens is currently not supported, which means that after the signature expires (often in 5 minutes), the driver will fail to authenticate, and subsequent requests will fail.

Description

This change updates the implementation of InternalAuthToken to NeptuneAuthToken, taken from AWS Neptune documentation, so that the signature can be automatically renewed even if the connection is broken.

Related Issue

#258

Additional Reviewers

@xiazcy
Copy link
Contributor

xiazcy commented Apr 17, 2024

This is a workaround to resolve token refresh issue that was brought up in #258, specific to Neo4j driver 4.4+.
Note that this will resolve cases where the connection was broken and the driver has to reconnect, and thus re-authenticate, with expired token after 5min.

@Cole-Greer Cole-Greer merged commit 8afc6a9 into aws:develop Apr 29, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants