Skip to content

Conversation

@Alex-4-Git
Copy link
Contributor

@Alex-4-Git Alex-4-Git commented Oct 4, 2022

This PR moves the doWithFreshTokens into GIDGoogleUser which is the last part in GIDAuthentication. The main modifications are as follows.

  • Move doWithFreshTokens: into GIDGoogleUser.
  • Keep GIDAuthentication internally to test encoding backward compatibility.
  • Introduce id<OIDAuthStateChangeDelegate> in GIDGoogleUser to observe the OIDAuthState changes.

Alex-4-Git and others added 23 commits September 19, 2022 17:55
Send KVO notifications when authState updates tokens.
Uses bit mask to verify KVO notifications are sent.
Since we use NSObject automatic change notifications we can remove the tests for manual notifications emission.
Added a new test case `testUpdateAuthStateWithUnchangedRefreshTokenAndIDToken `
- Add GIDEMMSupportTest
- Add test cases for `doWithFreshTokens:`in GIDGoogleUserTest
- Delete GIDAuthenticationTest
@Alex-4-Git Alex-4-Git marked this pull request as ready for review October 6, 2022 20:07
@Alex-4-Git Alex-4-Git requested review from mdmathias and petea October 6, 2022 20:07
@Alex-4-Git Alex-4-Git force-pushed the pin-moveDoWithFreshTokens branch from bc07103 to ee6f7a4 Compare October 6, 2022 20:48
@Alex-4-Git Alex-4-Git force-pushed the pin-moveDoWithFreshTokens branch 2 times, most recently from 4065709 to 8b241e6 Compare October 7, 2022 23:58
@Alex-4-Git Alex-4-Git requested review from ch40w31 and petea October 7, 2022 23:59
@Alex-4-Git Alex-4-Git force-pushed the pin-moveDoWithFreshTokens branch from 8b241e6 to b9f312a Compare October 8, 2022 00:22
@Alex-4-Git Alex-4-Git requested a review from petea October 11, 2022 05:57
@Alex-4-Git Alex-4-Git force-pushed the pin-moveDoWithFreshTokens branch from 3ff1fa5 to 6ee3073 Compare October 12, 2022 21:51
Copy link

@ch40w31 ch40w31 left a comment

Choose a reason for hiding this comment

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

Can you also check the PR description?

  • GIDAuthentication is now preserved for testing purpose.
  • Not sure what "Introduce id in GIDGoogleUser to observe the OIDAuthState changes" means.

@Alex-4-Git Alex-4-Git requested a review from ch40w31 October 13, 2022 18:42
@Alex-4-Git Alex-4-Git requested a review from ch40w31 October 13, 2022 21:40
@Alex-4-Git Alex-4-Git force-pushed the pin-moveDoWithFreshTokens branch from 35be9ec to c065b29 Compare October 13, 2022 22:44
@Alex-4-Git Alex-4-Git merged commit e43bd7f into GIDGoogleUser-restructure Oct 14, 2022
@Alex-4-Git Alex-4-Git deleted the pin-moveDoWithFreshTokens branch October 14, 2022 00:55
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