rides-ios-sdk icon indicating copy to clipboard operation
rides-ios-sdk copied to clipboard

.native login issue

Open nafetswirth opened this issue 8 years ago • 13 comments

The .native type login all of a sudden stopped working for us today.

We have recently requested the all_trips scope and got it granted. It worked fine for a day but now when we are trying to login it opens the Uber app and does nothing (no redirect no scope approval screen).

This has been working for us for the last 2 or 3 months so I was wondering if the scopes are the issue here or maybe the last Uber update.

SDK version is 0.9.0

Best, Stefan

nafetswirth avatar Mar 02 '18 00:03 nafetswirth

I can't reproduce this; have you tried force quitting the Uber app and re-opening it? Uber can get stuck in a state where the SSO dialog won't open; it's a known issue and will be addressed in the mid future.

edjiang avatar Mar 02 '18 01:03 edjiang

@edjiang Yes i tried that. I've had multiple people with the same problem apparently after updating the Uber app.

Uber version is v3.287.10003 if that helps

nafetswirth avatar Mar 02 '18 01:03 nafetswirth

Hm, I'm not able to reproduce even on 3.287.10003.

Is this the case for everyone using your app? Or just some? Is it only for your app? (Try building the sample app on master, for instance)

edjiang avatar Mar 02 '18 02:03 edjiang

The example app works fine but it uses the standard login button.

So i went ahead and tried the standard login button inside our app that had a custom one that uses the underlying LoginManager(loginType: .native).

Turns out the standard LoginButton works fine with the same settings (scopes, clientId etc) as our custom button.

Seems odd to me because as far as i can see the LoginButton just delegates to LoginManager

nafetswirth avatar Mar 02 '18 12:03 nafetswirth

Hm. Can you log the deeplink url being used for both cases? You can email me, [email protected] with more details.

edjiang avatar Mar 02 '18 19:03 edjiang

We are receiving an error from the Uber SSO

deeplink://error=jwt_creation_failure

Our auth url is:

uberauth://connect?client_id={REDACTED}&client_secret={REDACTED}&login_type=default&third_party_app_name=Freebird Rides Staging&callback_uri_string=freebird://uberSSO&scope=all_trips history places profile offline request request_receipt vouchers.redeem&sdk=ios&sdk_version=3.0.0

Has anyone had problems with this?

https://stackoverflow.com/questions/58868478/uber-sso-errors-with-jwt-creation-failture

theonetheycallneo avatar Nov 15 '19 02:11 theonetheycallneo

I am facing the same problem as @theonetheycallneo. I have reported the issue in details here: https://github.com/uber/rides-ios-sdk/issues/262

RaytIgor avatar Nov 15 '19 21:11 RaytIgor

@theonetheycallneo @RaytIgor anyone solve this yet?

austinllach avatar Nov 18 '19 22:11 austinllach

@austinllach no, nothing yet

RaytIgor avatar Nov 19 '19 15:11 RaytIgor

@austinllach did you manage to find a work around?

RaytIgor avatar Nov 27 '19 20:11 RaytIgor

@theonetheycallneo @RaytIgor my contacts told me Uber's backend was being fixed. Pull the latest sdk changes, and ~ Dec 3rd the Uber Rider app will be updated. Then this should be resolved.

austinllach avatar Nov 28 '19 05:11 austinllach

@austinllach thanks a lot for the update!

RaytIgor avatar Nov 28 '19 19:11 RaytIgor