Skip to content

Make sure re-auth throws retryable error for retryable failures #1008

@injectives

Description

@injectives

To enable users to retry when a retryable authentication failure is raised by the Neo4j server, it is essential to raise a retryable exception. Which exception is retryable actually depends on a number of factors, like:

  • authentication type being used (not a complete list)
    • basic auth - it is Neo.ClientError.Security.Unauthorized
    • token auth - Neo.ClientError.Security.TokenExpired and Neo.ClientError.Security.Unauthorized
    • custom auth - might be something else
  • maybe custom auth token manager logic

Therefore, the auth token manager might be responsible for deciding if a security failure should be retried.

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions