Closed lauracowen closed 9 months ago
Hi Manasi, good job getting the includes in there so that this is building properly! đź‘Ť
Peer review feedback:
examples.adoc
file needs to have Examples as an H2 title (see the JDBC file or the Social Media Login file)
mpJwt
feature", I'd use plain text for the feature name (from our stylistic guidelines)description.adoc
file and include that too (and it'd display near the top of the topic) but I don't think it adds much information to what's already there.<mpJwt....../>
section. Keep examples as tight and minimal as possible. The keyStore
section might be important actually, so keep that too. But remove everything else.Bruce's edit comments(from Slack) "Should omit since don’t have the rest of the file or the matching tag. Don’t neet to mention maven or the keystore - not everybody uses maven (containers, for example, use Docker images) MicrProfile --> MicroProfile"
@brutif Can you review the draft for the updates https://draft-openlibertyio.mybluemix.net/docs/ref/feature/#mpJwt-1.1.html?
looks fine.
@lauracowen Can you review this feature https://draft-openlibertyio.mybluemix.net/docs/ref/feature/#mpJwt-1.1.html?
microservice
server configuration" (there are two examples in the post). I think all you need are the mpJwt
and keyStore
lines. Everything else is just stuff you'd put in the app anyway for other purposes. Can you use those two lines instead of the ones you've currently got?${...}
). Examples without proper values aren't that useful in this context though. So if you use the example from Bruce's blog post, it will remove that problem.mpJwt
element defines the....(check what these attributes' values define) and the keyStore
element defines the keystore that will be used by the JWT:" or something like that.mpJwt
element" as it's easier to read/skim.Thanks
looks good, you might consider. where to retrieve the public key from to validate the JWT --> where to obtain the public key used to validate the JWT.
latest edit looks fine.
Looks good. Thank you :)
@chirp1 Can you review this draft https://draft-openlibertyio.mybluemix.net/docs/ref/feature/#mpJwt-1.1.html?
@Charlotte-Holt Can you review this draft https://draft-openlibertyio.mybluemix.net/docs/ref/feature/#mpJwt-1.1.html?
Peer review feedback:
JwksUri
attribute...", I think it should be, "The jwksUri
attribute...". Since the actual element doesn't seem to be capitalized in the example? keystore
. In the config example, the attribute is keyStore
. Check which is correct, and maybe make them consistent.Other than that, looks good!
@Charlotte-Holt , I worked on your edit suggestions
[x] Similar thing with keystore. In the config example, the attribute is keyStore. Check which is correct, and maybe make them consistent.
[x] Acrolinx is flagging that "trust store" should be "truststore". Check on that in this context.
[x] I might spell out what JWKS stands for the first time you use it
[x] In the second example, consider whether to monospace "myApp" in the description. It reads funny to me not monospaced, but this could've been intentional. I don't think it's necessarily incorrect.
Thanks. Signing off.
Hi Manasi,
I just happened to look for this topic to show as an example to someone else but I don't see any examples in this topic: https://draft-openlibertyio.mybluemix.net/docs/20.0.0.9/reference/feature/mpJwt-1.1.html Am I missing something or has something built incorrectly?
I tracked down the problem. The include statements that pull in the examples.adoc file are not in the MP JWT 1.1 version of the feature doc, only in the MP JWT 1.0 version. This is probably (I'm guessing?) because the new gendoc version was added after you started work on this? Whether or not that's what happened here, it will keep happening with this and other features. We could do with some automation to handle this when the gendoc are created/updated. cc @Charlotte-Holt @dmuelle
Thanks for fixing. Signing off.
@chirp1 New edits and updates
jwksUri
attribute tells the mpjwt
element from where to obtain the public key to validate the JWT.", to, "The jwksUri
attribute points the mpjwt
element towards the public key to validate the JSON Web Token." for clarity"A concise, powerful verb more clearly conveys your intended meaning and promotes a more active style." https://learning.oreilly.com/library/view/developing-quality-technical/9780133119046/ch06.html
"Watch for nominalizations that use weak verbs such as be, have, perform, make, and give. " https://learning.oreilly.com/library/view/developing-quality-technical/9780133119046/ch06.html
@chirp1 Updated draft link https://draft-openlibertyio.mybluemix.net/docs/20.0.0.11/reference/feature/jwt-1.0.html.
Hi Manasi,
Some of the updates that I list might be in development code. If they are, and you can't make the changes, then open a defect for development so that they make the changes. Add to your issue a link to the defect. Review with me the changes that you are considering putting into the defect before you put them in so that we agree on those changes.
Also, your comments on Sep 23 seem to be for another topic as i don't see the changes that you made in this JSON Web Token 1.0 topic. We generally write out a term on first occurrence, for example: JSON Web Token (JWT), and then use the acronym afterwards in the topic.
@chirp1 I made updates per your edit suggestions.
Here's the link https://draft-openlibertyio.mybluemix.net/docs/20.0.0.12/reference/feature/jwt-1.0.html
Opened an issue for the first three suggestions https://github.com/OpenLiberty/docs/issues/3000
Change "This feature allows runtime..." to "This feature allows the runtime...:
Review "JWT tokens". Does the wording seem right to you?
Change "...declaration into your ..." to "...declaration to your...". <= Change "into" to "in".
[x] For the section titled "Examples", do the number of examples in the section match the singular/plural of the title?
[x] "ID" in "The ID attribute...." does not match the example.
[x] Run Acrolinx. I see at least one issue for you to fix.
[x] Change "URL http://example.com " to "http://example.com URL ".
[x] For "that identifies who issued the JSON Web Token.", investigate the use of "who", and change accordingly.` (referred to this link, https://tools.ietf.org/html/rfc7519)
[x] For "The expiry attribute indicates", I think you meant a different attribute.
Hi Manasi, I think you meant to give me the link to the MP JWT topic: https://draft-openlibertyio.mybluemix.net/docs/20.0.0.11/reference/feature/mpJwt-1.1.html instead of the link to the JWT topic at https://draft-openlibertyio.mybluemix.net/docs/20.0.0.12/reference/feature/jwt-1.0.html This link to the JWT topic goes instead with this issue https://github.com/OpenLiberty/docs/issues/636. So, my comments that I gave you previously in this issue go with issue #636. I added a note to #636, indicating that the comments are instead in this issue.
I'll review the MP JWT topic.
Hi Manasi, Here are my comments:
I worked on Karen's review for this issue and waiting on the changes to show after the builds are resolved.
@chirp1 I moved this issue to your column for an editorial review.
https://draft-openlibertyio.mybluemix.net/docs/21.0.0.1/reference/feature/mpJwt-1.1.html
https://www.openliberty.io/docs/ref/feature/#mpJwt-1.1.html
Add one or more realistic config examples to the generated feature topic: https://www.openliberty.io/docs/ref/feature/#mpJwt-1.1.html (see JDBC feature for the format). Use example from MP JWT guide (https://openliberty.io/guides/microprofile-jwt.html#securing-back-end-services-with-microprofile-jwt) and get reviewed to check it's good enough.
Also the example config in the blog post here: https://github.com/OpenLiberty/blogs/blob/master/publish/2019-08-29-securing-microservices-social-login-jwt.adoc