fix: correct user initials display when authentication is enabled #691
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.
Purpose
This pull request updates how user information is retrieved and displayed in the frontend, aligning it with Azure App Service authentication and simplifying the user info logic. The backend endpoint for user info is removed, and the frontend now directly consumes the Azure authentication endpoint. User display is improved by using the authenticated user's display name instead of parsing the user ID.
User Authentication and Display Improvements:
App.tsx) now fetches user information directly from the Azure App Service built-in authentication endpoint (/.auth/me) instead of the removed/api/userbackend endpoint. It extracts the user ID from theobjectidentifierclaim and the display name from thenameclaim.getUserInitialslogic and the customUserInfointerface are removed, and theAvatarcomponent now displays the user's display name (if available) for a more accurate and user-friendly experience. [1] [2] [3]Backend Cleanup:
/api/userendpoint and related user info retrieval logic are removed from the backend (app.py), as user details are now sourced directly from Azure App Service authentication in the frontend.Does this introduce a breaking change?
Golden Path Validation
Deployment Validation
What to Check
Verify that the following are valid
Other Information