google / GoogleSignIn-iOS

Enables iOS and macOS apps to sign in with Google.
https://developers.google.com/identity/sign-in/ios
Apache License 2.0
455 stars 181 forks source link

Process authorization response and token fetch. #405

Closed brnnmrls closed 1 month ago

brnnmrls commented 2 months ago

Context: After receiving the authorization request, the next step is to process the authorization response. This will follow GIDSignIn's current implementation: -[GIDSignIn processAuthorizationResponse:error:emmSupport:]. This method will check for an authorization code. If it does then it fetches the age access token, otherwise an error will be issued to the client.

TODO:

  1. Implement -[GIDVerifyAccountDetail processAuthorizationResponse:error:emmSupport:].
  2. Fetch token similar to -[GIDSignIn maybeFetchToken].
  3. Unit testing for request and response handling.