GoogleSignIn-iOS
GoogleSignIn-iOS copied to clipboard
Enables iOS and macOS apps to sign in with Google.
Create an internal logger to help with formatting and log levels around console messages. [Generating log messages](https://developer.apple.com/documentation/os/logging/generating_log_messages_from_your_code?language=objc) has good documentation from Apple.
Add class HttpFetcher fetches data from URL endpoint. Add the FakeHttpFetcher. Use HttpFetcher on GIDSignIn for revoking the grant scope.
Currently the GIDSignInTest using [mock GIDGoogleUser](https://github.com/google/GoogleSignIn-iOS/blob/main/GoogleSignIn/Tests/Unit/GIDSignInTest.m#L1377-L1383) on user sign in process, which makes it hard to verify the value of the signed in user. For improving the test quality, we...
This new class GIDUserAuthFlowResult represents the outcome of the authentication and authorization flow returned by GIDUserAuthFlowController. GIDSignIn will use it to create or restore a user.
The existing GIDSignIn implementation handles the both interactive and non-interactive authentication flow in a same method, which increase the code complexity. This refactor work will handle the interactive and non-interactive...
This class helps GIDUserAuthFlowController to start the authentication flow and get back an OIDAuthorizationResponse. We need serverClientID, hostedDomain, clientID, scopes, loginHint and extraParams from the current GIDSignInInternalOptions.
The class handles two scenarios. Exchange auth code for access token. Refresh access token.
Implement the class GIDHTTPFetcher fetches data from an URL endpoint. GIDSignIn uses this class to revoke granted scopes. GIDProfileDataFetcher uses this class to fetch profile data. We need this class...
GIDProfileDataFetcher extracts an GIDProfileData out of an OIDAuthState object. It either extracts an ID token out of the OIDAuthState object or fetches user profile data through GIDHTTPFetcher.