Skip to content

Conversation

@atheriel
Copy link
Collaborator

This commit takes a second stab at the viewer-based credential support added in #853.

It contains two major changes:

  1. Users no longer need to pass a session argument. We figure it out internally instead. This allows users to deploy apps to Connect with no code changes.

  2. The underlying code to get these credentials is now hosted in the connectcreds package, which also provides a number of nice mocking features we can use in odbc's unit tests. The connectcreds implementation is based on the code that this commit removes, though it has a number of improvements as well, so this should be a net win, too.

Unit tests and documentation is included.

@atheriel atheriel requested a review from simonpcouch February 10, 2025 14:11
Copy link
Collaborator

@simonpcouch simonpcouch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stellar. Thanks for making this happen!

For the GitHub archeologists: that session argument never made it to CRAN so the removal of that argument only affects users of the dev version of the package.

This commit takes a second stab at the viewer-based credential support
added in #853.

It contains two major changes:

1. Users no longer need to pass a `session` argument. We figure it out
   internally instead. This allows users to deploy apps to Connect with
   no code changes.

2. The underlying code to get these credentials is now hosted in the
   `connectcreds` package, which also provides a number of nice mocking
   features we can use in `odbc`'s unit tests. The `connectcreds`
   implementation is based on the code that this commit removes, though
   it has a number of improvements as well, so this should be a net win,
   too.

Unit tests and documentation is included.

Signed-off-by: Aaron Jacobs <[email protected]>
@atheriel
Copy link
Collaborator Author

Test failures seem unrelated.

@atheriel atheriel merged commit 721f7e9 into main Feb 11, 2025
16 of 17 checks passed
@atheriel atheriel deleted the use-connectcreds branch February 11, 2025 16:55
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.

3 participants