google / google/GoogleSignIn-iOS

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

Aperta
#284 2 commenti 0 reazioni 1 assegnatario Rivendicata da @mdmathias Vedi su GitHub
enhancement
Lingua principale
Objective-C
Stelle
750
Fork
282
Merge medio
2g 15h
PR unite (30g)
9

Descrizione

`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).

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.