Skip to content

Conversation

@aureldent
Copy link
Collaborator

No description provided.

@aureldent aureldent requested a review from ulodciv December 31, 2019 09:43
@codecov-io
Copy link

codecov-io commented Dec 31, 2019

Codecov Report

Merging #74 into master will decrease coverage by 0.37%.
The diff coverage is 25%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #74      +/-   ##
==========================================
- Coverage   65.35%   64.98%   -0.38%     
==========================================
  Files          13       13              
  Lines         765      771       +6     
==========================================
+ Hits          500      501       +1     
- Misses        265      270       +5
Impacted Files Coverage Δ
lumapps/api/client.py 28.32% <25%> (-0.31%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 74fbf45...1c09484. Read the comment docs.

@aureldent aureldent requested a review from ulodciv January 6, 2020 13:57
Copy link
Contributor

@ulodciv ulodciv left a comment

Choose a reason for hiding this comment

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

Why not add an argument to get_new_client instead? Perhaps called something like use_get_token?

@aureldent
Copy link
Collaborator Author

aureldent commented Jan 6, 2020

Because I wanted to have a function that does one and only one thing that is correctly authenticate as a new user.
Also I feeled that authenticate_on_behalf_of was clearer.
We can maybe use that method to extend get_new_client_as if that seems right to you.

@ulodciv
Copy link
Contributor

ulodciv commented Jan 6, 2020

I have nothing against creating a new method, but, doesn't get_new_client_as return also an ApiClient "on behalf of"?

@aureldent
Copy link
Collaborator Author

Never used it, but from what i understand not really that would use the account wide delegation (that use a little magic in the google library by calling the credentials with_subject method) so no quite what we want to do there :)

@ulodciv ulodciv merged commit 3b0f419 into master Jan 13, 2020
@ulodciv ulodciv deleted the feat/getToken_wrapper branch January 16, 2020 11:01
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