Skip to content
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

retrieveUserInfoFromAccessToken doesn't return a UserResponse #1225

Closed
mooreds opened this issue May 14, 2021 · 2 comments
Closed

retrieveUserInfoFromAccessToken doesn't return a UserResponse #1225

mooreds opened this issue May 14, 2021 · 2 comments
Labels
bug Something isn't working client-library

Comments

@mooreds
Copy link
Collaborator

mooreds commented May 14, 2021

retrieveUserInfoFromAccessToken doesn't return a UserResponse

Description

This file has the incorrect return type https://github.com/FusionAuth/fusionauth-client-builder/blob/master/src/main/api/retrieveUserInfoFromAccessToken.json

It should return this domain object: https://github.com/FusionAuth/fusionauth-client-builder/blob/master/src/main/domain/io.fusionauth.domain.oauth2.UserinfoResponse.json

Affects versions

1.27.2

Steps to reproduce

Try to make a call with the client library. You will not get back what you expect. I'm not sure what happens in statically typed languages.

Expected behavior

Return the UserInfo object.

Additional context

Original bug report FusionAuth/fusionauth-typescript-client#54

@mooreds mooreds added bug Something isn't working client-library labels May 14, 2021
@robotdan
Copy link
Member

This is probably a bug or limitation of our client builder. The action returns an Object.

  @JSONResponse
  public Object response;

This is because we return a typed error object during validation. We will need to review our Java2JSON builder, or refactor this action to set a typed value for @JSONResonse, and then it should build the clients properly.

@lyleschemmerling
Copy link

The typescript client and the api appear to be functioning correctly in as much as we have defined the "UserInfoResponse" to be an open-ended map/dict. Verified in 1.55

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working client-library
Projects
None yet
Development

No branches or pull requests

4 participants