ott-web-app icon indicating copy to clipboard operation
ott-web-app copied to clipboard

[IDM-161] - feat: IAM Middleware

Open kiremitrov123 opened this issue 7 months ago • 3 comments

Description

This PR sets up the initial project structure for the Access Bridge service. A service that facilitates seamless communication between SIMS (Subscriber Identity Management System) and Access Control services. It provides endpoints to generate and refresh access passports for authenticated viewers, ensuring secure and efficient access management.

Create Initial Project Structure

  • Set up the project structure following the service and controller patterns.
  • Installed necessary dependencies and added the required configurations.

Generate Passport

  • Implemented the endpoint to generate a new passport.
  • Created the corresponding controller and service logic.

Refresh Passport

  • Implemented the endpoint to refresh an existing passport, generating a new expiry and refresh token.
  • Created the corresponding controller and service logic.

Add Tests

  • Added unit tests for the small functionalities as well as util helper functions.
  • Added integration tests for the generate passport and refresh passport functionalities to ensure proper behavior and stability.

Design document: AC - Sims Integration

Related Jira cards:

Note: There will be follow up PRs related to this one, that will include the Stripe logic needed for fetching Stripe products metadata, as well as payment initiation.

Steps completed:

According to our definition of done, I have completed the following steps:

  • [x] Acceptance criteria met
  • [x] Unit tests added
  • [x] Docs updated (including config and env variables)
  • [ ] Translations added
  • [ ] UX tested
  • [ ] Browsers / platforms tested
  • [ ] Rebased & ready to merge without conflicts
  • [ ] Reviewed own code

kiremitrov123 avatar Jul 22 '24 09:07 kiremitrov123