-
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
OIDC document shoud update #32143
Comments
/cc @pedroigor (oidc), @sberyozkin (oidc) |
@SetoKaiba I'm not sure I understand, |
I didn't try @RolesAllowed approach. But for the below documentation. Because I'm writing a standalone application without keycloak-js. So I have to generate the access token myself. I use the way the documentation mentioned. I use that access token unable to access to my service. Then I compared the two token response. I found that the keycloak-js one is with scope openid. But mine doesn't. My access is working again after I added &scope=openid. |
@SetoKaiba I've re-tested I'm not sure why I appreciate this is what you have to do, add an |
Thank you. I found out the problem. This require the openid scope. This is not set in the example but it's mentioned in the doc. So I use it to get more user info. Then I found the problem today with the password grant workflow. Should this be mentioned or is it a common sense for the developers with OIDC?
|
@SetoKaiba I see, if you use the code flow then Quarkus itself will add this scope, or if it is SPA then keycloak.js will do it. However, for testing, where AT is retrived manually (DevServices for Keycloak will add it itself) and if this token is expected to support the UserInfo retrieval, then indeed, I see why this scope has to be added. This warrants a Note for sure, to the keycloak authorization and oidc bearer token docs. Would you like to add such a note to both docs, just beneath the example showing how to get the token with curl ? |
I'd like to. For the guides of the website, is the repo path below that I should add a note and create a PR to? https://github.com/quarkusio/quarkusio.github.io/tree/develop/_guides I found that there's security related adoc in the main repo as well. But some guides in the mainsite is missing here. https://github.com/quarkusio/quarkus/tree/main/docs/src/main/asciidoc Which one should I create a PR to add the note? Thank you. |
@SetoKaiba Thanks, And please do the same here: |
@sberyozkin @michalvavrik could you take care of the doc addition or close this issue as not planned? Thanks. |
Sorry that I was busy. I'll create a PR this weekend. |
No hurry, I think adding note makes sense. Thank you |
Describe the bug
https://quarkus.io/guides/security-openid-connect#testing-the-application
username=alice&password=alice&grant_type=password
should change tousername=alice&password=alice&grant_type=password&scope=openid
Or the token response scope will be only with "profile email". No "openid". Then the authorization will fail.
Expected behavior
No response
Actual behavior
No response
How to Reproduce?
No response
Output of
uname -a
orver
No response
Output of
java -version
No response
GraalVM version (if different from Java)
No response
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: