uber / uber-ios-sdk

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

Shared credentials across iOS app and extension #127

Closed SNagra closed 7 years ago

SNagra commented 8 years ago

I am trying to share one set of credentials across an iOS app and it's app extension. I've turned on Keychain Sharing in both targets and added the same bundle identifier to both. When configuring the SDK I set Configuration.setDefaultKeychainAccessGroup("com.identifier")

and I double check that it is set appropriately with

print(Configuration.getDefaultKeychainAccessGroup())

However, when I try and use the SDK to create a ride in the extension, the request returns this error: "Invalid OAuth 2.0 credentials provided."

jbrophy17 commented 8 years ago

Thanks for the report. Taking a look at the Keychain Manager, it looks like there is a bug where the KeychainAccessGroup is not correctly being used when saving the credentials.

SNagra commented 8 years ago

Any suggested workarounds?

jbrophy17 commented 7 years ago

Sorry for the delay, this is fixed in v0.5.3