Skip to content

chore: Replace multipart with url encoded forms - #875

Merged
LouisCAD merged 1 commit into
mainfrom
replace-multipart-where-possible
Oct 22, 2026
Merged

LouisCAD merged 1 commit into
mainfrom
replace-multipart-where-possible

Conversation

@LouisCAD

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI balanced review requested due to automatic review settings October 22, 2026 11:30
@sonarqubecloud

Copy link
Copy Markdown

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The focused conversions preserve request parameters and handling, with no blocking issues identified in the supplied diffs.

No open issues 🎉

What changed in this PR

This PR switches OAuth token requests in the shared Login and Auth modules from multipart bodies to URL-encoded forms.

Changes:

  • Replaces MultipartBody with OkHttp FormBody for login, token exchange, and token refresh requests.
  • Preserves all existing parameters, including conditional access_type and duration fields.
File Description
Login/​src/​main/​java/​com/​infomaniak/​core/​login/​InfomaniakLogin.kt Converts authorization-code and password token requests to URL-encoded forms.
Auth/​src/​main/​kotlin/​com/​infomaniak/​core/​auth/​DerivedTokenGeneratorImpl.kt Converts derived-token exchange requests to URL-encoded forms.
Auth/​src/​main/​kotlin/​com/​infomaniak/​core/​auth/​api/​AuthRepository.kt Converts token refresh requests to URL-encoded forms.

Review effort: Balanced

@LouisCAD
LouisCAD merged commit a71367c into main Oct 22, 2026
11 checks passed
@LouisCAD
LouisCAD deleted the replace-multipart-where-possible branch October 22, 2026 11:39
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.

3 participants