Skip to content

Question about onsChannel param #124

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

Closed
messense opened this issue Apr 1, 2019 · 7 comments
Closed

Question about onsChannel param #124

messense opened this issue Apr 1, 2019 · 7 comments

Comments

@messense
Copy link
Member

messense commented Apr 1, 2019

What does onsChannel param mean in setSessionCredentials method?

void setSessionCredentials(const std::string& input_accessKey,
const std::string& input_secretKey,
const std::string& input_onsChannel);

@ShannonDing
Copy link
Member

ShannonDing commented Apr 2, 2019

This method provides the ability to connect some cloud platform with your AK, SK using a specific signature, such as aliyun and so on. eg, "ALIYUN" should be set to the Channel when connecting to aliyun platform and the c style API is recommend to use like ROCKETMQCLIENT_API int SetProducerSessionCredentials(CProducer *producer, const char *accessKey, const char *secretKey,const char *onsChannel);

@messense
Copy link
Member Author

messense commented Apr 2, 2019

If I setup authentication for my local RocketMQ instance, can I use setSessionCredentials method? How should I pass onsChannel param in that case?

@ShannonDing
Copy link
Member

Just leave them none, if you wanna connect local broker without authentication.

@messense
Copy link
Member Author

messense commented Apr 3, 2019

Did you mean with authentication?

@vongosling
Copy link
Member

@ShannonDing I think you should make some clear when supporting some cloud service.

@ShannonDing
Copy link
Member

  1. Connect Aliyun: please fulfill the paras with AK, SK and "ALIYUN",
  2. Connect local broker without authentication: leave all the paras of SessionCredentials none,
  3. Connect local broker with authentication: using AK, SK, and your signature method name instead now,
  4. Other could platform: not support now

@messense
Copy link
Member Author

messense commented Apr 3, 2019

@ShannonDing Thanks!

@messense messense closed this as completed Apr 3, 2019
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

No branches or pull requests

3 participants