-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
[BACK-2989] Add Twiist provider #724
base: master
Are you sure you want to change the base?
Conversation
86451e9
to
c303a00
Compare
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.
My only concern is that there are 0 tests.
@@ -51,6 +51,11 @@ func NewProvider(name string, configReporter config.Reporter) (*Provider, error) | |||
} | |||
cfg.Scopes = SplitScopes(configReporter.GetWithDefault("scopes", "")) | |||
|
|||
authStyleInParams := configReporter.GetWithDefault("auth_style_in_params", "") | |||
if authStyleInParams == "true" { |
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.
strconv.ParseBool might have been a good fit here.
AccessToken: t.AccessToken, | ||
TokenType: t.TokenType, | ||
RefreshToken: t.RefreshToken, | ||
Expiry: t.ExpirationTime, | ||
} | ||
if t.IdToken != "" { | ||
token.WithExtra(map[string]any{ |
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.
Neat. TIL.
@ewollesen unfortunately, the newly added code is rather difficult to test in isolation - it requires a whole lot of mocking in order to test that a task is created on linking and the task is deleted when accounts are unlinked. Same holds true for the pre-existing Dexcom code which also lacks such tests. Given that there isn't much going on here, I think it's ok this to be tested manually by the QA team. |
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.
I can trust that you're making the right tradeoffs.
No description provided.