Repository navigation
[WEB-10171] fix: stop returning OAuth provider tokens - #10303
Conversation
…sponse AccountSerializer returned the stored OAuth access, refresh and id tokens to the browser. No client reads them, so they are no longer serialised.
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
|
Linked to Plane Work Item(s) This comment was auto-generated by Plane |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
…sponse (makeplane#10303) AccountSerializer returned the stored OAuth access, refresh and id tokens to the browser. No client reads them, so they are no longer serialised. (cherry picked from commit 72efad1)
Description
GET /api/users/me/accounts/serialisedAccountwithfields = "__all__", which returned the stored OAuthaccess_token,refresh_tokenandid_tokento the browser. No frontend reads them.AccountSerializernow excludes those three fields.AccountEndpointis its only caller.Type of Change
Screenshots and Media (if applicable)
Test Scenarios
plane/tests/contract/app/test_user_accounts_app.py: the list and detail responses include the account and none of the three token fields. Fails without the fix, passes with it.References
Created with Claude Code
Summary by CodeRabbit
Bug Fixes
Tests