Skip to content

Conversation

@Alex-4-Git
Copy link
Contributor

@Alex-4-Git Alex-4-Git commented Jul 28, 2022

Move the token related properties from GIDAuthentication.h to GIDGoogleUser.h.
In the previous PR we created the new class GIDToken. We can use this new type to add three tokens: access token, refresh token and ID token.

@Alex-4-Git Alex-4-Git closed this Jul 28, 2022
@Alex-4-Git Alex-4-Git reopened this Jul 28, 2022
@Alex-4-Git Alex-4-Git force-pushed the pin-removeGIDAuthentication branch 3 times, most recently from fbdcea6 to 09672e8 Compare July 29, 2022 03:47
@Alex-4-Git Alex-4-Git requested review from mdmathias and petea July 29, 2022 04:45
@mdmathias
Copy link
Collaborator

It might be beneficial in the future to add some more context in your PR description. Off the top of my head, I'm not sure why we want to add the these three token properties. I can go looking for context to help, but it'd be nice to have it here too. Moreover, I think we are all much less likely to remember, or be able to find, this context if we return to this PR in the future.

@Alex-4-Git Alex-4-Git force-pushed the pin-removeGIDAuthentication branch from 54c24b0 to a495e24 Compare July 30, 2022 18:36
@Alex-4-Git Alex-4-Git requested a review from mdmathias July 30, 2022 18:46
@Alex-4-Git Alex-4-Git requested a review from mdmathias August 1, 2022 19:31
@Alex-4-Git Alex-4-Git requested a review from petea August 2, 2022 04:01
@Alex-4-Git Alex-4-Git force-pushed the pin-removeGIDAuthentication branch from 858c710 to 02f9af5 Compare August 3, 2022 14:46
* Create class GIDUserAuth

Add class GIDUserAuth to represent the outcome of a successful signIn or addScopes flow.
Replace GIDSignInCallback with block
void (^)(GIDUserAuth *_Nullable userAuth, NSError *_Nullable error)
Add GIDToken class
* Add the property GIDConfiguration to GIDGoogleUser

- Add a GIDConfiguration to replace hostedDomain, serverClientID, openRealm.
- Remove the property serverAuthCode.
Replace GIDSignInCallback with block
void (^)(GIDUserAuth *_Nullable userAuth, NSError *_Nullable error)
@Alex-4-Git Alex-4-Git force-pushed the pin-removeGIDAuthentication branch from 02f9af5 to 9dcff47 Compare August 3, 2022 18:09
@Alex-4-Git Alex-4-Git force-pushed the GIDGoogleUser-restructure branch from 331202d to ada3203 Compare August 3, 2022 19:52
@Alex-4-Git Alex-4-Git force-pushed the pin-removeGIDAuthentication branch from 312f45a to d86d5a9 Compare August 3, 2022 20:54
@Alex-4-Git Alex-4-Git requested a review from petea August 4, 2022 16:57
1. Add property getters in GIDGoogleUser to match the pattern of GIDConfiguration
2. Use copy on the string parsed from authState.
@Alex-4-Git Alex-4-Git requested a review from petea August 8, 2022 19:43
@Alex-4-Git Alex-4-Git merged commit 5c8fa73 into GIDGoogleUser-restructure Aug 11, 2022
@Alex-4-Git Alex-4-Git deleted the pin-removeGIDAuthentication branch August 26, 2022 00:24
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