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

feat: [SRTP-230] extract subject from access token #62

Merged
merged 12 commits into from
Jan 31, 2025

Conversation

lucaconsalvi
Copy link
Contributor

@lucaconsalvi lucaconsalvi commented Jan 31, 2025

Description

We want to extract sub from the JWT token and add it to the RTP object.

List of Changes

  • Add a function to extract the sub.
  • Modify the sending controller
  • Modify the RTP mapper to accept also the sub
  • Add the new field SpCreditor to the DB entity and inside the RTP object
  • Fix all the tests to work with this new field
  • Add a utility inside the project to create a fake JWT with the sub.

Motivation and Context

How Has This Been Tested?

  • Pre-Deploy Test
    • Unit
    • Integration (Narrow)
  • Post-Deploy Test
    • Isolated Microservice
    • Broader Integration
    • Acceptance
    • Performance & Load

Types of changes

  • PATCH - Bug fix (backwards compatible bug fixes)
  • MINOR - New feature (add functionality in a backwards compatible manner)
  • MAJOR - 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.

@lucaconsalvi lucaconsalvi marked this pull request as ready for review January 31, 2025 11:09
@lucaconsalvi lucaconsalvi requested review from a team as code owners January 31, 2025 11:09
@lucaconsalvi lucaconsalvi merged commit fbac964 into main Jan 31, 2025
9 checks passed
@lucaconsalvi lucaconsalvi deleted the SRTP-230-extract-subject-from-access-token branch January 31, 2025 15:09
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