Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ADDED] UserInfoHandler for dynamically setting user/password #1713

Merged
merged 2 commits into from
Sep 20, 2024

Conversation

piotrpio
Copy link
Collaborator

@piotrpio piotrpio commented Sep 10, 2024

Resolves #1694

Signed-off-by: Piotr Piotrowski piotr@synadia.com

Signed-off-by: Piotr Piotrowski <piotr@synadia.com>
@piotrpio piotrpio requested a review from Jarema September 10, 2024 21:13
Signed-off-by: Piotr Piotrowski <piotr@synadia.com>
@coveralls
Copy link

coveralls commented Sep 10, 2024

Coverage Status

coverage: 84.835% (-0.04%) from 84.87%
when pulling 5196533 on user-info-handler
into a06b6a9 on main.

Copy link
Member

@Jarema Jarema left a comment

Choose a reason for hiding this comment

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

Looks ok, but I don't think it's a good name.

nats.go Show resolved Hide resolved
@@ -2563,6 +2577,13 @@ func (nc *Conn) connectProto() (string, error) {
pass = o.Password
token = o.Token
nkey = o.Nkey

if nc.Opts.UserInfo != nil {

Choose a reason for hiding this comment

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

...this tiny change will have huge opportunities for our organization (from #1694)!

Copy link
Member

@Jarema Jarema left a comment

Choose a reason for hiding this comment

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

LGTM

@piotrpio piotrpio merged commit e850080 into main Sep 20, 2024
10 of 12 checks passed
@piotrpio piotrpio deleted the user-info-handler branch September 20, 2024 09:17
@tommyjcarpenter
Copy link

Is there a setter for this like some of the other CBs?

piotrpio added a commit that referenced this pull request Dec 13, 2024
Signed-off-by: Piotr Piotrowski <piotr@synadia.com>
piotrpio added a commit that referenced this pull request Dec 13, 2024
Signed-off-by: Piotr Piotrowski <piotr@synadia.com>
@piotrpio piotrpio mentioned this pull request Dec 17, 2024
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.

Explicit support for auth change during reconnect
4 participants