Skip to content

feat(auth): credentials on connect#17

Draft
balsick wants to merge 1 commit intochore/FLEX-3170-mavenfrom
feat/FLEX-3333
Draft

feat(auth): credentials on connect#17
balsick wants to merge 1 commit intochore/FLEX-3170-mavenfrom
feat/FLEX-3333

Conversation

@balsick
Copy link
Copy Markdown
Contributor

@balsick balsick commented Apr 24, 2026

FLEX-3333
The purpose of this PR is to add on js side the credentials. Needs to be completed with native modules support.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR extends the public JS/TS connection API to accept broker credentials during connect, as part of adding authentication support on the JavaScript side (with native module support still pending).

Changes:

  • Extend ConnectionParameters with optional username and password.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/index.tsx Outdated
Comment on lines +305 to +309
port: number;
clientId: string;
reconnect: boolean;
username?: string;
password?: string;
Copy link

Copilot AI Apr 24, 2026

Choose a reason for hiding this comment

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

username/password are now exposed as part of the public ConnectionParameters, but the current native connect implementations (Android/iOS) don’t read these fields and still require a TLS identity to be configured. As-is, callers can pass credentials with no effect (or still get "no identity is configured"), which makes the JS API misleading. Consider either (a) documenting these fields here as "not yet supported by native modules" / "planned", or (b) rejecting at runtime when credentials are provided until native support lands, to avoid silent no-op behavior.

Copilot uses AI. Check for mistakes.
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.

2 participants