microsoft-authentication-library-common-for-android icon indicating copy to clipboard operation
microsoft-authentication-library-common-for-android copied to clipboard

Add a common implementation for the BrokerRestrictionsManager, Fixes AB#3181005

Open p3dr0rv opened this issue 10 months ago • 1 comments

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

p3dr0rv avatar Mar 13 '25 00:03 p3dr0rv

❌ Work item link check failed. Description does not contain AB#{ID}.

Click here to Learn more.

github-actions[bot] avatar Mar 13 '25 00:03 github-actions[bot]