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

Add support for userInfo endpoint #872

Merged
merged 7 commits into from
Jul 18, 2023
Merged

Add support for userInfo endpoint #872

merged 7 commits into from
Jul 18, 2023

Conversation

frederikprijck
Copy link
Member

@frederikprijck frederikprijck commented Jun 15, 2023

Changes

Add support for the userInfo endpoint, which we missed in the initial beta.

Testing

Please describe how this can be tested by reviewers. Be specific about anything not tested and reasons why. If this library has unit and/or integration testing, tests should be added for new functionality and existing tests should complete without errors.

  • This change adds unit test coverage
  • This change adds integration test coverage

Checklist

@frederikprijck frederikprijck requested a review from a team as a code owner June 15, 2023 10:31
@adamjmcgrath
Copy link
Contributor

I wonder if the Users service should not be part of AuthenticationClient, since we don't want to require users to provide a clientId to call the userinfo endpoint

We should probably just export UsersClient along with AuthenticationClient and ManagementClient

@adamjmcgrath
Copy link
Contributor

Or we could make clientId optional and add a runtime check in the base auth api client?

@frederikprijck
Copy link
Member Author

Thinking about it from the Auth0 side, it's part of the Authentication API docs. I am happy with both, but leaning towards part of AuthApi (it also was like that before).

Happy to make clientId optional and run-time check in the base-auth-api.

@frederikprijck
Copy link
Member Author

Updated the PR to ensure the UserInfoClient is a separate client instead of a sub-client on the Auth side.

adamjmcgrath
adamjmcgrath previously approved these changes Jul 18, 2023
@frederikprijck
Copy link
Member Author

I missed telemetry and some tests, updated.

@frederikprijck frederikprijck merged commit 02aa3de into beta Jul 18, 2023
4 checks passed
@frederikprijck frederikprijck deleted the feat/auth-users branch July 18, 2023 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants