microsoft-authentication-library-common-for-android
microsoft-authentication-library-common-for-android copied to clipboard
Add a common implementation for the BrokerRestrictionsManager, Fixes AB#3181005
Context
Currently, for QR + PIN authentication, users are prompted for camera permission every time the camera is used, even if OS-level permissions are granted. This is a CELA requirement to ensure user consent. However, a new feature request aims to suppress this camera permission prompt if an admin enables a specific flag in the restriction manager of the authenticator app.
Changes
- The current PR involves refactoring the RestrictionsManagerHelper class to make it reusable for reading the new flag.
- Create a new class, CommonBrokerRestrictionsManager, that implements the IBrokerRestrictionsManager interface.
Upcoming PRs will leverage this flag to implement functionality that suppresses the camera permission prompt when enabled by the admin.
Related PR: https://github.com/AzureAD/ad-accounts-for-android/pull/3066 AB#3181005