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

why internal Provider? #863

Closed
tianjingle opened this issue Oct 15, 2022 · 1 comment · Fixed by #914
Closed

why internal Provider? #863

tianjingle opened this issue Oct 15, 2022 · 1 comment · Fixed by #914

Comments

@tianjingle
Copy link

tianjingle commented Oct 15, 2022

When I customized a authentication , I went to implement the Provider interface and found that the internal was used in Pulsar-Client-Go, so I couldn't customize the authentication. How do I implement custom authentication for this piece? Looking forward to your answer. Thank you.

func NewAuthenticationIAM(ak string, sk string) auth.Provider {
	var provider auth.Provider
	provider = &IAMProvider{
		ak:        ak,
		sk:        sk
	}
	return provider
}
@nodece
Copy link
Member

nodece commented Nov 29, 2022

Could you make a PR to fix this?

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 a pull request may close this issue.

2 participants