Skip to content

2024-05-15: Authentication improvements for public documents

Compare
Choose a tag to compare
@pamelafox pamelafox released this 15 May 16:57
· 18 commits to main since this release
a4d9386

This release adds new environment variables for more flexibility when using user authentication and user access control. Here is the updated section of the documentation about authentication section:

  1. (Optional) To require access control when using the app, run azd env set AZURE_ENFORCE_ACCESS_CONTROL true. Authentication is always required to search on documents with access control assigned, regardless of if unauthenticated access is enabled or not.
  2. (Optional) To allow authenticated users to search on documents that have no access controls assigned, even when access control is required, run azd env set AZURE_ENABLE_GLOBAL_DOCUMENT_ACCESS true.
  3. (Optional) To allow unauthenticated users to use the app, even when access control is enforced, run azd env set AZURE_ENABLE_UNAUTHENTICATED_ACCESS true. AZURE_ENABLE_GLOBAL_DOCUMENT_ACCESS should also be set to true if you want unauthenticated users to be able to search on documents with no access control.

See the full steps here:
https://github.com/Azure-Samples/azure-search-openai-demo/blob/main/docs/login_and_acl.md#automatic-setup

Please file issues if you see any problems with the new capabilities.
 

What's Changed

New Contributors

Full Changelog: 2024-04-25...2024-05-15