Skip to content

Conversation

@Alex-4-Git
Copy link
Contributor

GIDProfileDataFetcher fetches the user info. It either extracts an ID token out of the OIDAuthState object or fetches user profile data through GIDHTTPFetcher.

Details in this PR:

  1. Add GIDProfileDataFetcher API, implementation and unit test.
  2. Convert the creation of GIDProfileData in GIDSignIn.m into an initializer of GIDProfileData.

Next step:
Create a fake for GIDProfileDataFetcher and use it in GIDSignInTest.m to replace mocks.

@Alex-4-Git Alex-4-Git force-pushed the pin-GIDProfileDataFetcher-new branch from c1ecc6a to 4c2172b Compare December 30, 2022 00:01
@Alex-4-Git Alex-4-Git requested a review from ch40w31 December 30, 2022 00:02
@Alex-4-Git Alex-4-Git marked this pull request as ready for review December 30, 2022 00:02
@Alex-4-Git Alex-4-Git force-pushed the pin-GIDProfileDataFetcher-new branch from 491939b to 242007e Compare January 2, 2023 19:53
@Alex-4-Git Alex-4-Git requested a review from ch40w31 January 2, 2023 19:55
@Alex-4-Git Alex-4-Git force-pushed the pin-GIDProfileDataFetcher-new branch from 242007e to e2bd4ff Compare January 3, 2023 18:10
@google google deleted a comment from s8627 Jan 3, 2023
@Alex-4-Git Alex-4-Git force-pushed the pin-GIDProfileDataFetcher-new branch from e2bd4ff to 4d13ed2 Compare January 3, 2023 18:20
@Alex-4-Git Alex-4-Git requested a review from petea January 3, 2023 23:04
@Alex-4-Git Alex-4-Git requested a review from ch40w31 January 4, 2023 18:35
@Alex-4-Git Alex-4-Git requested a review from petea January 5, 2023 02:23
The profile data items in the ID token and UserInfo endpoint response share keys so we decide to put them together in GIDProfileDataFetcher.
@Alex-4-Git Alex-4-Git requested a review from petea January 9, 2023 21:21
@Alex-4-Git Alex-4-Git requested a review from petea January 10, 2023 18:51
@Alex-4-Git Alex-4-Git requested a review from petea January 10, 2023 22:34
@Alex-4-Git Alex-4-Git merged commit ba223db into refactorGSI Jan 11, 2023
@Alex-4-Git Alex-4-Git deleted the pin-GIDProfileDataFetcher-new branch January 11, 2023 00:54
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