-
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
[quarkus-oidc] Wrong client id sent to introspection endpoint when introspection credentials are given #27442
Comments
/cc @pedroigor, @sberyozkin |
@DCCSKrezovic I'm not sure about it. This rule that your provider is implementing does not look correct to me. The whole concept of using a custom authentication for the token introspection (avoiding the client id) is non standard, but in any case if the client id is present then I see no problems with your provider ignoring this field in the introspection request since it has no impact on the actual introspection authentication. We can imagine that other users would expect that the client id is also provided as per the standard introspection request spec even if the basic authentication is configured. With the custom authentication the concept of the Quarkus endpoint being a confidential OIDC client with a specific id has not gone away. Or drop the client id from the configuration completely - it is optional for the bearer token authentication. |
HI @sberyozkin According to the spec, only the token and token_type_hint are defined and expected. Everything else is optional and OIDC provider specific. Can providing the client id be made into a turnable? |
@sberyozkin the oidc provider we are using defines two clients:
|
@mqs24d the rule is quite simple:
|
@DCCSKrezovic Hi, as far as the other optional parameters are concerned they are not really about the client authentication, but about some extra properties related to the actual introspection input. The client authentication implied there refers to the OIDC client.
I guess so, I can just add one more property to the |
Please, if not a big deal, and thank you very much. |
No problems, we'd like to support various OIDC provider setups, whenever possible |
Thanks for quick fix! |
Describe the bug
This has been mentioned by a colleague that's using the same OIDC provider as I am
When setting the form field "client_id" in the introspection call, it must match the introspection_client_id introduced in quarkus 2.12 (see pr #26917 (comment))
Otherwise, the following error is shown:
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
2.12.0.CR1
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: