Use MSA accounts in a different app registration in development mode. #646
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request updates authentication to use Microsoft Entra ID tokens (idTokens) instead of accessTokens for both client and server, ensuring compatibility with consumer accounts and improving token validation logic. It also updates the registered application client ID and authority settings to match the new configuration.
After this change, the default dev environment authentication is to the consumer/MSA endpoint with a consumer app registration. This hardens the security on our default app registration (which will be deleted).
Authentication and Token Handling Updates:
workbench-app/src/libs/useWorkbenchEventSource.ts,workbench-app/src/libs/useWorkbenchService.ts,workbench-app/src/services/workbench/workbench.ts) [1] [2] [3] [4] [5] [6]appid,aud,azp) and user identification via eithertid.oidorsub. (workbench-service/semantic_workbench_service/middleware.py) [1] [2]Configuration Changes:
workbench-app/.env.example,workbench-app/src/Constants.ts,workbench-service/semantic_workbench_service/config.py) [1] [2] [3] [4]Code Quality Improvements:
collections.abcfor better compatibility and clarity. (workbench-service/semantic_workbench_service/middleware.py)