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

[SELC-4590] feat: Added V2 API for tokenExchange and billing tokenExchange #390

Merged
merged 7 commits into from
Mar 28, 2024

Conversation

empassaro
Copy link
Collaborator

List of Changes

Added V2 API for tokenExchange and billing tokenExchange

Motivation and Context

With a view to migrating to API v2, it is necessary to expose this api as internally it uses user authorities to perform business logic

How Has This Been Tested?

local env.

Screenshots (if appropriate):

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

@empassaro empassaro requested a review from a team as a code owner March 25, 2024 14:02
Copy link

sonarcloud bot commented Mar 25, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
15.8% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

flaminiaScarciofolo and others added 3 commits March 25, 2024 15:11
# Conflicts:
#	connector/rest/src/main/java/it/pagopa/selfcare/dashboard/connector/rest/UserConnectorImpl.java
}
}

private Institution retrieveInstitution(String institutionId, List<ProductGrantedAuthority> productGrantedAuthorities, boolean isBillingToken) {
Copy link
Collaborator

@pierpaolodidato89 pierpaolodidato89 Mar 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we move this logic into a separate service (adding also a mapper) avoding to have private methods - or at least a part of them - into this service?


@GetMapping(value = "exchange")
@ResponseStatus(HttpStatus.OK)
@ApiOperation(value = "", notes = "${swagger.dashboard.token.api.exchange}")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As mentioned in previous pull requests, we should add a specific operation identifier for the endpoints

Copy link

sonarcloud bot commented Mar 28, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
12.3% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

@manuraf manuraf merged commit 1c1ae9a into release-uat Mar 28, 2024
2 of 3 checks passed
@manuraf manuraf deleted the feature/SELC-4590 branch March 28, 2024 11:51
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.

4 participants