Skip to content

Conversation

@tstanmay13
Copy link
Contributor

@tstanmay13 tstanmay13 commented Nov 19, 2025

Description

Linear ticket: Closes FER-6796: [Java] SDK generates invalid rootVariable method with undefined clientOptionsBuilder

Prevents credential exposure in logs, debugger, and error messages by returning redacted strings from toString() instead of actual tokens.

  • BearerAuth.toString(): "BearerAuth{token=[REDACTED]}"
  • BasicAuth.toString(): "BasicAuth{credentials=[REDACTED]}"

Zero breaking changes - getToken() and authentication still work identically. Verified with seed tests.

Testing

  • Unit tests added/updated
  • Manual testing completed

@github-actions
Copy link

🌱 Seed Test Selector

Select languages to run seed tests for:

  • Python
  • TypeScript
  • Java
  • Go
  • Ruby
  • C#
  • PHP
  • Swift
  • Rust
  • OpenAPI
  • Postman

How to use: Click the ⋯ menu above → "Edit" → check the boxes you want → click "Update comment". Tests will run automatically and snapshots will be committed to this PR.

@tstanmay13 tstanmay13 marked this pull request as ready for review November 19, 2025 21:16
@tstanmay13 tstanmay13 force-pushed the tanmay/java-no-toString-on-token branch from e9b07bd to 9ef04e8 Compare November 19, 2025 21:20
@tstanmay13 tstanmay13 force-pushed the tanmay/java-no-toString-on-token branch from 9ef04e8 to 95b066a Compare November 20, 2025 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants