-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove unused AAD token to support other identity providers #459
Remove unused AAD token to support other identity providers #459
Conversation
Requiring the AAD token produces error when using other identity providers, such as those using OpenID. Moreover, the AAD token (X-Ms-Token-Aad-Id-Token) is not used anywhere in the app.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the contribution! Rather than removing these fields, in case they might be used in future features, let's just change them to .get() calls instead of directly reading the properties. That will make it flexible for other identity providers while preserving these values for AAD in case they will be needed.
Thank you for the proposal, your patience, and the quick approval, Sarah. |
* - supporting docx and pptx in offline ingestion script via form recognizer (microsoft#474) Co-authored-by: FARHAD SHAKERIN <fxs130430@utdallas.edu> * Change button colors (microsoft#462) * Fix comma/pipe separator issue and improve local dev loop (microsoft#483) Co-authored-by: Sarah Widder <sawidder@microsoft.com> * Remove unused AAD token to support other identity providers (microsoft#459) * [Feature] Rebrand sample app with Contoso branding (microsoft#486) Co-authored-by: Ian Seabock (Centific Technologies Inc) <v-ianseabock@microsoft.com> * Add feedback buttons with optional setting (microsoft#396) Co-authored-by: Sarah Widder <sawidder@microsoft.com> Co-authored-by: Ian Seabock (Centific Technologies Inc) <v-ianseabock@microsoft.com> * Rebuild static files (microsoft#491) Co-authored-by: Ian Seabock (Centific Technologies Inc) <v-ianseabock@microsoft.com> * remove linting errors * merge fix complete * remove hard-coded api-preview-version * remove addition to cosmosdb key * remove print plus small json fix * additional format and var fixes * fix another typo * restore location of dotenv and logging --------- Co-authored-by: FARHAD SHAKERIN <shakerin.farhad@gmail.com> Co-authored-by: FARHAD SHAKERIN <fxs130430@utdallas.edu> Co-authored-by: vsunnyzhao <154259069+vsunnyzhao@users.noreply.github.com> Co-authored-by: Sarah Widder <sarah.j.widder@gmail.com> Co-authored-by: Sarah Widder <sawidder@microsoft.com> Co-authored-by: Christoph Goessmann <44035999+gochristoph@users.noreply.github.com> Co-authored-by: Ian Seabock <iseabock@users.noreply.github.com> Co-authored-by: Ian Seabock (Centific Technologies Inc) <v-ianseabock@microsoft.com> Co-authored-by: Chana <v-chanacohn@microsoft.com>
Fixes #457
Requiring the key
X-Ms-Token-Aad-Id-Token
effectively requires using AAD/Microsoft as identity provider and produces and error and the loss of chat history with other identity providers.Removing the dependency in
auth_utils.py
as the AAD token is not used anywhere in the app.This fixes the dependency on AAD and allows other identity providers, such as OpenID, to be used.
Ready for review.