With the introduction of the QR + PIN Auth method a new query string parameter was added.
Preferred authorization method = pc.
This parameter will be passed to the authorization endpoint to indicate the preferred authorization method for a request. (for QR + PIN Auth the code is 18)
If this parameter is present ESTS will read the code and will return a UX according to the specified pc.
If this parameter is not present the behavior will be the same, we have now.
Changes
Add PreferredAuthMethod to InteractiveTokenCommandParameters, MicrosoftAuthorizationRequest and BrokerRequest to be transported through the flow.
Why
With the introduction of the QR + PIN Auth method a new query string parameter was added. Preferred authorization method = pc. This parameter will be passed to the authorization endpoint to indicate the preferred authorization method for a request. (for QR + PIN Auth the code is 18) If this parameter is present ESTS will read the code and will return a UX according to the specified pc. If this parameter is not present the behavior will be the same, we have now.
Changes
Related PR's
https://github.com/AzureAD/ad-accounts-for-android/pull/2630 https://github.com/AzureAD/microsoft-authentication-library-for-android/pull/1964