Skip to content

[doc] Improve Pulsar Security-token-client#5039

Merged
sijie merged 5 commits intoapache:masterfrom
Monica-zy:security-token-client
Aug 28, 2019
Merged

[doc] Improve Pulsar Security-token-client#5039
sijie merged 5 commits intoapache:masterfrom
Monica-zy:security-token-client

Conversation

@Monica-zy
Copy link
Contributor

Motivation
Improve the language and the overall descriptive style of the Pulsar Security document (security-token-client section): http://pulsar.apache.org/docs/en/next/security-token-client/

Modifications
Adjust the tone, personal pronouns, voice also some typo errors of some sentences in the document.

@Jennifer88huang-zz Jennifer88huang-zz self-requested a review August 26, 2019 11:12
@Jennifer88huang-zz Jennifer88huang-zz added doc Your PR contains doc changes, no matter whether the changes are in markdown or code files. area/security labels Aug 26, 2019
@Jennifer88huang-zz Jennifer88huang-zz added this to the 2.5.0 milestone Aug 26, 2019
Copy link
Contributor

@Jennifer88huang-zz Jennifer88huang-zz left a comment

Choose a reason for hiding this comment

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

Good job.

[JSON Web Tokens](https://jwt.io/introduction/) ([RFC-7519](https://tools.ietf.org/html/rfc7519)).

Tokens are used to identify a Pulsar client and associate with some "principal" (or "role") which
You can use tokens to identify a Pulsar client and associate with some "principal" (or "role") that
Copy link
Contributor

Choose a reason for hiding this comment

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

Avoid to use "will be".
Try present tense. Check all similar cases.

```

Application will specify the token when the application is creating the client instance. An alternative is to pass a "token supplier" (a function that returns the token when the client library needs one).
Application specifies the token when the application is creating the client instance. An alternative is to pass a "token supplier" (a function that returns the token when the client library needs one).
Copy link
Contributor

Choose a reason for hiding this comment

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

Could app create client instance?

Tokens are used to identify a Pulsar client and associate with some "principal" (or "role") which
will be then granted permissions to do some actions (eg: publish or consume from a topic).
You can use tokens to identify a Pulsar client and associate with some "principal" (or "role") that
is permitted to do some actions (eg: publish or consume from a topic) then.
Copy link
Contributor

Choose a reason for hiding this comment

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

  1. do not use abbreviation in technical writing, not use "eg, etc. ...", you can use "for example", "such as".
  2. complete information: publish messages to a topic, consume messages from a topic.
  3. delete "then" at the end.

@sijie
Copy link
Member

sijie commented Aug 27, 2019

run integration tests

@sijie sijie merged commit 8b0d726 into apache:master Aug 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/security doc Your PR contains doc changes, no matter whether the changes are in markdown or code files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants