uber / uber-ios-sdk

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

Prompt parameter for native auth #313

Closed mohssenfathi closed 3 weeks ago

mohssenfathi commented 3 weeks ago

Description

Adding support for the prompt OAuth parameter when executing native auth. We do not want to support the login option when launching the native 1P app, so this is removed before launching. Only the consent option should work for native auth.

Testing

Unit Tests

Added unit tests to ensure the login prompt value is not sent for native requests

Manual Testing

  1. Run the sample app
  2. Set Destination to Native
  3. Toggle Always ask for Login and Always ask for Consent to on
  4. Verify the native app was launched and only consent was required, not login