Skip to content

Cpp oauth2 auth client - #7467

Merged
jiazhai merged 2 commits into
apache:masterfrom
jiazhai:cpp_oauth2
Jul 9, 2020
Merged

Cpp oauth2 auth client#7467
jiazhai merged 2 commits into
apache:masterfrom
jiazhai:cpp_oauth2

Conversation

@jiazhai

@jiazhai jiazhai commented Jul 7, 2020

Copy link
Copy Markdown
Member

Motivation

#7420 provides an Oauth2 auth client for java. This PR tries to support it in cpp client

Modifications

  • add implementation
  • add related tests.

@jiazhai
jiazhai requested review from codelipenghui, sijie and tuteng July 7, 2020 12:43
@jiazhai jiazhai self-assigned this Jul 7, 2020
@sijie sijie added this to the 2.7.0 milestone Jul 7, 2020
@jiazhai

jiazhai commented Jul 8, 2020

Copy link
Copy Markdown
Member Author

/pulsarbot run-failure-checks

@sijie
sijie requested a review from merlimat July 8, 2020 01:40

@sijie sijie left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

A couple of questions:

  1. It seems that in Java plugin we are using encoded auth param string but in c++ client, we don't use encoded auth param. Is there any reason?

  2. I think it is worth supporting reading client credentials from a JSON file. So applications can configure to read the credentials from a credentials file. We should support a similar feature in Java client similar as what we did for Token provider.

  3. We need to add documentation in c++ client.

@jiazhai

jiazhai commented Jul 9, 2020

Copy link
Copy Markdown
Member Author
  • It seems that in Java plugin we are using encoded auth param string but in c++ client, we don't use encoded auth param. Is there any reason?
  • I think it is worth supporting reading client credentials from a JSON file. So applications can configure to read the credentials from a credentials file. We should support a similar feature in Java client similar as what we did for Token provider.
  • We need to add documentation in c++ client.

Thanks @sijie for the reminder, opened new issue to track the reminding work.

@jiazhai
jiazhai merged commit 2d0cceb into apache:master Jul 9, 2020
wolfstudy pushed a commit that referenced this pull request Jul 29, 2020
### Motivation

#7420 provides an Oauth2 auth client for java. This PR tries to support it in cpp client

### Modifications

- add implementation
- add related tests.

(cherry picked from commit 2d0cceb)
huangdx0726 pushed a commit to huangdx0726/pulsar that referenced this pull request Aug 24, 2020
### Motivation

apache#7420 provides an Oauth2 auth client for java. This PR tries to support it in cpp client

### Modifications

- add implementation
- add related tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants