OpenLiberty / docs

See Open Liberty documentation on https://openliberty.io/docs/
https://openliberty.io/docs/
Other
13 stars 47 forks source link

Example config for MP JWT feature (MSSEC16) #571

Closed lauracowen closed 9 months ago

lauracowen commented 5 years ago

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

Charlotte-Holt commented 4 years ago

Hi Manasi, good job getting the includes in there so that this is building properly! đź‘Ť

Peer review feedback:

lauracowen commented 4 years ago
ManasiGandhi commented 4 years ago

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"

ManasiGandhi commented 4 years ago

@brutif Can you review the draft for the updates https://draft-openlibertyio.mybluemix.net/docs/ref/feature/#mpJwt-1.1.html?

brutif commented 4 years ago

looks fine.

ManasiGandhi commented 4 years ago

@lauracowen Can you review this feature https://draft-openlibertyio.mybluemix.net/docs/ref/feature/#mpJwt-1.1.html?

lauracowen commented 4 years ago

Thanks

brutif commented 4 years ago

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.

brutif commented 4 years ago

latest edit looks fine.

lauracowen commented 4 years ago

Looks good. Thank you :)

ManasiGandhi commented 4 years ago

@chirp1 Can you review this draft https://draft-openlibertyio.mybluemix.net/docs/ref/feature/#mpJwt-1.1.html?

ManasiGandhi commented 4 years ago

@Charlotte-Holt Can you review this draft https://draft-openlibertyio.mybluemix.net/docs/ref/feature/#mpJwt-1.1.html?

Charlotte-Holt commented 4 years ago

Peer review feedback:

Other than that, looks good!

ManasiGandhi commented 4 years ago

@Charlotte-Holt , I worked on your edit suggestions

lauracowen commented 4 years ago

Thanks. Signing off.

lauracowen commented 4 years ago

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?

lauracowen commented 4 years ago

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

lauracowen commented 4 years ago

Thanks for fixing. Signing off.

ManasiGandhi commented 4 years ago

New link of the draft https://draft-openlibertyio.mybluemix.net/docs/20.0.0.10/reference/feature/mpJwt-1.1.html

ManasiGandhi commented 4 years ago

@chirp1 New edits and updates

"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

ManasiGandhi commented 4 years ago

@chirp1 Updated draft link https://draft-openlibertyio.mybluemix.net/docs/20.0.0.11/reference/feature/jwt-1.0.html.

chirp1 commented 4 years ago

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.

ManasiGandhi commented 4 years ago

@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".
chirp1 commented 4 years ago

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.

chirp1 commented 3 years ago

Hi Manasi, Here are my comments:

ManasiGandhi commented 3 years ago

I worked on Karen's review for this issue and waiting on the changes to show after the builds are resolved.

ManasiGandhi commented 3 years ago

@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

dmuelle commented 2 years ago

https://openliberty.io/docs/latest/reference/feature/mpJwt-2.0.html