uber / uber-ios-sdk

Uber iOS SDK (beta)
https://developer.uber.com/docs
MIT License
376 stars 125 forks source link

Update LoginManager with new login flows #200

Closed edjiang closed 6 years ago

edjiang commented 7 years ago

As mentioned in #204:

LoginManager now handles the state associated with the authentication flow, and picks the appropriate method of opening the URL associated with an authentication flow.

If the login URL is a web link (https), it chooses between SFAuthenticationSession (iOS 11), SFSafariViewController (iOS 9+), and regular Safari to handle the flow, and receive the response correctly.

If the login is a deeplink, it attempts the deeplink and intelligently chooses a fallback depending on configuration.