azure-activedirectory-library-for-cordova icon indicating copy to clipboard operation
azure-activedirectory-library-for-cordova copied to clipboard

prompt parameter cannot be overridden

Open martinlingstuyl opened this issue 6 years ago • 7 comments

Issue Description

I need to override the prompt parameter with prompt=consent because of an issue with AAD that can be reproduced like this:

  1. Create a Native AAD app and give it some permissions
  2. Use the AAD app in cordova > sign in, a consent screen is shown.
  3. Now add a new permission scope to the Native AAD app.
  4. Try to sign in again: it will not show a consent screen after signin in and thus no token can be requested for the specific new resource, because no consent was given by the user for that resource.

I get it with ADAL JS as well. Though there I can force prompt=consent by adding it to extraQueryParameters variable.

In ADAL for cordova I cannot add prompt=consent to extraQueryParameters. It will throw a duplicate parameter message.

Repro Environment Details

  1. Installed plugin version: 0.8.x and 0.10.x
  2. Target Platform: tested on ios & windows. Didn't test android.
  3. Cordova and platform versions: 5.4.1
  4. Test device and OS version: Windows 10 desktop

martinlingstuyl avatar Sep 20 '17 10:09 martinlingstuyl