-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Improve OIDC bearer token concept doc #37692
Improve OIDC bearer token concept doc #37692
Conversation
🙈 The PR is closed and the preview is expired. |
Jakub added his comments to the original issue - #37463 (comment) |
39b509a
to
197a170
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry I miss the push for this PR. Thanks for all the changes! Looking at the changes they look good just one comment. Also just one thing is that text If you want to protect web applications by using OIDC authorization code flow authentication, see OIDC authorization code flow authentication
still point to 404 and by your comment (point 1) #37463 (comment) this should be also removed.
@@ -782,7 +818,7 @@ quarkus.oidc.public-key=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlivFI8qB4D0y | |||
smallrye.jwt.sign.key.location=/privateKey.pem | |||
---- | |||
|
|||
copy `privateKey.pem` from the `integration-tests/oidc-tenancy` in the `main` Quarkus repository and use a test code similar to the one in the `Wiremock` section above to generate JWT tokens. You can use your own test keys if preferred. | |||
copy link:https://github.com/quarkusio/quarkus/tree/main/integration-tests/oidc-tenancy/src/main/resources/privateKey.pem[privateKey.pem] from the `integration-tests/oidc-tenancy` in the `main` Quarkus repository and use a test code similar to the one in the `Wiremock` section above to generate JWT tokens. You can use your own test keys if preferred. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding the link. Just small note it should look something like link:{quickstarts-tree-url}/integration-tests/oidc-tenancy/src/main/resources/privateKey.pem[privateKey.pem]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jedla97 Unfortunately this resource is only available in the main repository, not in quickstarts. This doc is a concept/reference doc, so it is not strictly associated with the quickstart
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh sorry how i was jumping between guides I miss that this link to Quarkus repo. What I had tried now is this link:{quarkus-blob-url}/integration-tests/oidc-tenancy/src/main/resources/privateKey.pem[privateKey.pem]
and it should work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @jedla97 Sure, let me do it
197a170
to
ea3039c
Compare
@jedla97 Thanks, I think I've fixed the link, now it should correctly point to the code flow concept/ref doc, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can confirm that 404 link is gone. For that one hardcoded link (previous comment) I don't fully mind it can stay as it. So all my concerns and problems from issue was fixed or explained. With this I can approve this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't spot anything suspicious, approving based on the approval from Jakub.
ea3039c
to
493a445
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for updating link. Tested it and it's work.
Fixes #37463
SPA snippet currently does not work with KC 23.
CC @jedla97, we can finalize early next year if Jakub is on PTO