azure-activedirectory-library-for-cordova
azure-activedirectory-library-for-cordova copied to clipboard
prompt parameter cannot be overridden
Issue Description
I need to override the prompt parameter with prompt=consent because of an issue with AAD that can be reproduced like this:
- Create a Native AAD app and give it some permissions
- Use the AAD app in cordova > sign in, a consent screen is shown.
- Now add a new permission scope to the Native AAD app.
- 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
- Installed plugin version: 0.8.x and 0.10.x
- Target Platform: tested on ios & windows. Didn't test android.
- Cordova and platform versions: 5.4.1
- Test device and OS version: Windows 10 desktop