AzureAD / microsoft-authentication-library-common-for-android

Common code used by both the Active Directory Authentication Library (ADAL) and the Microsoft Authentication Library (MSAL)
MIT License
41 stars 35 forks source link

Add PreferredAuthMethod to interactive token flow #2245

Closed p3dr0rv closed 9 months ago

p3dr0rv commented 11 months ago

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