google / google/GoogleSignIn-iOS

Add `-[GIDSignIn signInWithCompletion:]` to provide sign in mechanism without a `presentingViewController`

Ouverte
#284 2 commentaires 0 réactions 1 personne assignée Réclamée par @mdmathias Voir sur GitHub
enhancement
Langage dominant
Objective-C
Étoiles
750
Forks
282
Merge moyen
2 j 15 h
PR mergées (30 j)
9

Description

`GIDSignInInternalOptions`, depending upon whether or not we are on macOS or iOS, will need to be created with a nil `presentingWindow` or `presentingViewController`.

The sign in with hint methods will also need to be updated similarly as well.

```
-[GIDSignIn signInWithHint:completion:]
-[GIDSignIn signInWithHint:addAdditionalScopes:completion:]
```

Last, the `-authenticateInteractivelyWithOptions:` method needs to be updated to handle the nil window or view controller case. The new implementation will make use of the new `+[OIDAuthorizationService presentAuthorizationRequest:callback:]` method outlined in the [related milestone on AppAuth-iOS](https://github.com/openid/AppAuth-iOS/milestone/7).

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.