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

fix(opencrvs-token-endpoint): update how access token is fetched from OpenCRVS #34

Merged
merged 2 commits into from
Feb 22, 2024

Conversation

naftis
Copy link
Contributor

@naftis naftis commented Feb 21, 2024

Hi! I'm Pyry from OpenCRVS and thought I'd help you out in the API changes a bit.

OpenCRVS has gone through 2 changes which affect this intermediate API:

  • authenticateSystemClient -api has changed to an OAuth-compliant URL. The new usage is documented here
  • Location API doesn't allow fetching all addresses at the same time anymore, without explicitly setting &type=CRVS_OFFICE to the query, and also re-fetching for &type=ADMIN_STRUCTURE

I've added the token changes to this PR.

In my understanding, the second point doesn't need changes, as the addresses are already fetched per id basis here: https://github.com/MonobikashDas/mosip-opencrvs/blob/develop/mediator/src/main/java/io/mosip/opencrvs/util/OpencrvsDataUtil.java#L288

naftis and others added 2 commits February 22, 2024 20:15
@loganathan-sekaran loganathan-sekaran merged commit 5bb7834 into mosip:develop Feb 22, 2024
1 check passed
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