Skip to content

Support for automatic credential refresh with supported drivers #653

@atheriel

Description

@atheriel

Issue Description and Expected Result

Right now if you're using an OAuth2 token instead of a username/password with certain drivers and the token expires, queries start returning errors.

Microsoft has a section on this in the ODBC 4.0 spec, and there's more precise detail in the documentation for the Databricks driver itself:

manual1
manual2

I'm wondering if it's possible to catch these errors, refresh the tokens (if possible), and retry the query automatically.

Database

Databricks, but potentially others.

Reproducible Example

I'm not sure I can provide a reproducible example for this, it's transient and requires all of the OAuth2 stuff to be set up.

Session Info
devtools::session_info()
#> output

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions