Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
CDK: Emit control message on config mutation #19428
CDK: Emit control message on config mutation #19428
Changes from 5 commits
f3d4b5a
24d24dd
355b90b
61e9d4b
1101ccc
22f75c7
d562117
733b89a
a59a1e6
616256e
3ef545d
0ff7318
9e1483c
2bbff33
1f02860
f40d99c
04041d8
12db1b7
63d129c
62ef553
bbe802a
8fd52f9
c5a0b6d
803b70a
37f474f
08f64e4
518a36f
64bbc48
4da6581
380e175
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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 we care about retaining and validating client_id and client_secret in this class instead of just passing up the concern to the super?
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.
As
client_id
,client_secret
, andrefresh_token
are mandatory arguments of the parent class, and the current constructor signature of the new class only takes aconnector_config
dict, I thought it would be safer to fail early if these fields' values could not be parsed from the config.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.
would recommend using
dpath
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.
Agreed but for implementation consistency with parent class and abstract class, I'd prefer to do this in a separate PR in which we can replace the
access_token_name
,expires_in_name
, andrefresh_token_name
by dpaths that can be used when parsing these responses. Wdyt?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.
makes sense!
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 were these removed?
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.
The
client_id
parameter does not exist in mySingleUseRefreshTokenOauth2Authenticator
implementation. Theclient_id
is retrieved from the configuration with dpath