-
Notifications
You must be signed in to change notification settings - Fork 39
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
[feat] Adding Custom Authenticator and Http Conn Pool #81
Conversation
bd93392
to
0152c56
Compare
Signed-off-by: Andre Furlan <[email protected]>
0152c56
to
05ce8b2
Compare
|
||
import "net/http" | ||
|
||
type Authenticator interface { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this a public user facing API?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is a public facing interface. Only needed if user wants to have their own implementation. Part of the auth package, not the dbsql package.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@andrefurlan-db I am planning to write the decision doc we discussed sometime end of this week / early next week. as this is a change in the public surface area, can we wait to close on that decision before merging this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is target for version 1.1.0. It won't be merged this year.
This is a v1.1.0 release PR |
Signed-off-by: Andre Furlan <[email protected]>
"github.com/pkg/errors" | ||
) | ||
|
||
type PATAuth struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do you need to re-implement auth, if there's a concurrent PR on integrating with Go SDK, that solves the auth problem in a unified way across different tools?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pending a one decision doc on the plan as a follow up internal discussion.
This PR adds: