-
Notifications
You must be signed in to change notification settings - Fork 46
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
Example config for JWT feature (MSSEC02) #636
Comments
Sorry, I've just put a bunch of feedback in this issue but it actually applies to #571 feature. Now moved across to the other feature. I don't see any examples in this particular page on the draft website so I don't think this should be in the SME Review column? I wonder whether the example should be about using |
Bruce's edit suggestions from the Slack conversation |
latest rev looks good to me |
@lauracowen Can you review the draft for JWT https://draft-openlibertyio.mybluemix.net/docs/ref/feature/#jwt-1.0.html ? |
This topic needs to actually present an example configuration, not just tell someone how to do it. See this guidance on writing these kind of topics. I think there's probably only a single example needed here, so start by taking the Take some a few minutes to read that blog post to get a bit of background about the point of this before trying to explain the example (you don't need this info in this topic but I just want to try to give you some background about what you're describing). The post talks about how you can have two services. The user authenticates in the first service using, say, Google login. That service also creates a JSON Web Token (JWT) with the authentication details. The reason for this is that the user requests information from that first service (eg in a web browser) but the info is held by the second service. The first service therefore has to send a request to the second service for that info. However, the second service is secured and can't just give out its information willy-nilly to anyone that asks for it. Therefore, the first service passes a JWT to the second service that contains data to reassure the second service that the user who made the original request is authenticated and has permission to see the information that will be returned by the second service. Basically, the JWT is a way of authenticating access to the second service on the user's behalf. There's a bit of back-and-forth technically but, as long as the user has the right permissions, the second service will then return the information requested to the first service, who displays it to the user. And everyone's happy. So, this feature (jwt), is used by the first service to create (or 'build') the JSON Web Token with the user's authentication details in it that will be passed to the second service with the information request. That's what the So you need some of the info that's currently in the topic but in a different order:
@dmuelle has written some authentication/authorization topics so can you discuss this with him if my explanation above isn't totally clear? (JWT is complicated. It is worth having a basic understanding though to be able to write about it. But if it's still clear as mud, it's worth discussing how to approach it with David.) Also, please can you briefly record in this issue answers from Bruce to the questions above so we can refer back to them easily if we need to. Thanks |
Hi Manasi, I don't seem to see a comment from Laura that she is OK with your updates. Has she reviewed your latest changes? Would you have Laura OK your work before you put it in my column? I also don't seem to see a peer edit. Would you have one of the other OL writers peer edit your topic and have them post their comments in this issue? Incorporate their edits. Also, run Axrolinx. You have at least one item to fix. If you haven't gone through the cheat sheet, go through it and fix any issues that you find. After you complete those items, then put this issue back in my column. Thanks! |
@dmuelle Can you peer review this draft https://draft-openlibertyio.mybluemix.net/docs/ref/feature/#jwt-1.0.html? |
Peer reviewIt might be helpful to explain, in a sentence or two, that the JWT builder is the config element that specifies the configuration details of JWT before you introduce the example.
I think this should go directly after the example description, as it has more to do with building than obtaining JWT. I think the whole example would be clearer if the info about building and the info about obtaining were more clearly delineated.
It's not clear what |
@dmuelle I addressed your edit suggestions
|
@lauracowen can you review this draft https://draft-openlibertyio.mybluemix.net/docs/ref/feature/#jwt-1.0.html ? |
|
@lauracowen I made changes per your suggestions and also discussed with Bruce.
|
Thanks, looks lots better. Last thing now...
|
@lauracowen I made those edits. I'm not sure why they are not showing. Will check. |
Okay, thanks. I'm going to sign it off because it contains the info it needs. However, can you take a look at the paragraph before sending for editorial review with @chirp1:
|
New link to the draft https://draft-openlibertyio.mybluemix.net/docs/20.0.0.10/reference/feature/jwt-1.0.html |
@chirp1 New edits and updates
"A concise, powerful verb more clearly conveys your intended meaning and promotes a more active style. "
Relative pronouns introduce relative clauses, which can be restrictive or nonrestrictive. Nonrestrictive clauses, or nonessential clauses, can be dropped from a sentence without changing the meaning. However, restrictive clauses, or essential clauses, can’t be dropped from the sentence because they add information that’s necessary for users to understand the intended meaning. Use that with restrictive clauses and which (plus commas) with nonrestrictive clauses." |
@chirp1 Updated link to the draft https://draft-openlibertyio.mybluemix.net/docs/20.0.0.11/reference/feature/jwt-1.0.html. |
Note: My editorial comments and Manasi's fixes to them are in this issue: #571 as Manasi inadvertanly the link to the JWT feature in the 571 issue instead of giving the link to the MP JWT feature. |
Hi Manasi,
|
@chirp1 I fixed the the tagging and moved the issue back to the editorial review. https://draft-openlibertyio.mybluemix.net/docs/20.0.0.12/reference/feature/jwt-1.0.html |
Hi Manasi, the updates look good. I'm moving this issue to Ready to Publish. |
Topic is published: https://www.openliberty.io/docs/latest/reference/feature/jwt-1.0.html Closing this issue |
Include examples of how to obtain JWT tokens from the generation endpoint (find good examples that demonstrate what's described in this KC topic: https://www.ibm.com/support/knowledgecenter/SSEQTP_liberty/com.ibm.websphere.wlp.doc/ae/twlp_sec_obtain_jwt.html and from here https://github.com/OpenLiberty/guide-microprofile-jwt/blob/master/finish/frontendUI/src/main/liberty/config/server.xml).
See also #571 (might be there needs to be some duplication of this config also in the MP JWT feature? not sure how to handle this yet)
The text was updated successfully, but these errors were encountered: