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

[#IC-131] Add impersonate service endpoint to retrieve user data by service id #174

Merged
merged 11 commits into from
Dec 20, 2021

Conversation

fabriziopapi
Copy link
Contributor

Add a new endpoint to retrieve the user data from APIM required to impersonate another service.
With this endpoint, an authorized service could get the info generally populated by the APIM starting from a subscription key without knowing the key itself. This allow a service to impersonate another one.

List of Changes

Add the impersonate-service endpoint

Motivation and Context

In the MVL project, we require a service (the PEC-SERVER) to impersonate another service in order to proper forware a legal mai via IO message.

How Has This Been Tested?

unit test
local system test (pending)

Screenshots (if appropriate):

Types of changes

  • Chore (nothing changes by a user perspective)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

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

@fabriziopapi fabriziopapi requested a review from AleDore December 10, 2021 12:08
@pagopa-github-bot
Copy link
Contributor

Warnings
⚠️

Please include a Pivotal story at the beginning of the PR title (see below).

Example of PR titles that include pivotal stories:

  • single story: [#123456] my PR title
  • multiple stories: [#123456,#123457,#123458] my PR title

Generated by 🚫 dangerJS

@AleDore AleDore marked this pull request as ready for review December 20, 2021 08:56
@AleDore AleDore requested a review from a team as a code owner December 20, 2021 08:56
@AleDore AleDore requested review from infantesimone and BurnedMarshal and removed request for a team December 20, 2021 08:56
@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
4.6% 4.6% Duplication

@AleDore AleDore merged commit ef0cbe8 into master Dec 20, 2021
@AleDore AleDore deleted the IC-131--add-get-group-from-serviceid branch December 20, 2021 14:08
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.

3 participants