-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
Cannot deserialize API response #19
Comments
Looks like it's fixed upstream here: OpenAPITools/openapi-generator#13548 |
I've got the same issue with the hydra-client-v2.2.0-rc.3. I cannot perform the Authorization Code Flow without setting the 'audience' request parameter. The response of
looks as follows:
As you can see, the 'requested_access_token_audience' attribute is null, but the OAuth2LoginRequest.validateJsonObject method doesn't check properly for null values and throws an java.lang.IllegalArgumentException ( "Expected the field The current code
has to be changed as follows:
|
This same issue was reported for the Rust client in the Community Slack. |
This is fixed now |
For me this is not fixed with server and client versions at 2.2.0. I still get the The underlying bug in openapi-generator was fixed in version 7.0.0 (OpenAPITools/openapi-generator#16213 / OpenAPITools/openapi-generator#16212). Currently ory/sdk is at 6.2.1 for Java. The latest version is 7.3.0, here is a PR that updates the java generator to this version: ory/sdk#332 |
Preflight checklist
Describe the bug
I get an error in the Java client when deserializing a response from the server:
Reproducing the bug
Making a call to
OAuth2Api#createOAuth2Client
Relevant log output
No response
Relevant configuration
No response
Version
2.1.1
On which operating system are you observing this issue?
macOS
In which environment are you deploying?
Binary
Additional Context
The issue is that the OAuth2Api incorrectly checks for null values:
Instead, it should be:
The text was updated successfully, but these errors were encountered: