Skip to content
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

Merged
merged 2 commits into from
Jan 9, 2024

Conversation

gochristoph
Copy link
Contributor

@gochristoph gochristoph commented Dec 15, 2023

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.

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.
Copy link
Contributor

@sarah-widder sarah-widder left a 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.

@gochristoph
Copy link
Contributor Author

Thank you for the proposal, your patience, and the quick approval, Sarah.

@gochristoph gochristoph closed this Jan 8, 2024
@gochristoph gochristoph reopened this Jan 8, 2024
@sarah-widder sarah-widder merged commit 9ba81d3 into microsoft:main Jan 9, 2024
1 check passed
LandMagic added a commit to ciesko/msrchat that referenced this pull request Jan 16, 2024
* - 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>
sudo-init pushed a commit to sudo-init/sample-app-chatGPT that referenced this pull request Sep 20, 2024
nikhilnagaraj pushed a commit to Admin-bh-Edge/Edge-Comp-Policies that referenced this pull request Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AAD dependency causes error when using other identity providers
2 participants