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

[IDM-172] - feat: generate passport #603

Closed
wants to merge 15 commits into from

Conversation

kiremitrov123
Copy link
Collaborator

@kiremitrov123 kiremitrov123 commented Aug 30, 2024

Description

This PR introduces the use of the recently implemented service to generate a passport — a JWE token that encapsulates the list of plans the viewer is entitled to. The passport is now stored in local storage and will be utilized by the media metadata endpoint.

Context:
The passport serves as a critical trust token for seamless communication with various services, ensuring the viewer's entitlements are recognized. While it is currently used by the media metadata endpoint, future enhancements will expand its usage across additional services, enabling more secure and efficient data retrieval.

In subsequent PRs, we will implement mechanisms to refresh the passport and leverage it further for media playback and other related functionalities.

Steps completed:

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

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

Copy link

github-actions bot commented Aug 30, 2024

Visit the preview URL for this PR (updated for commit f9ac5f5):

https://ottwebapp--pr603-idm-172-generate-pas-con4vshg.web.app

(expires Fri, 11 Oct 2024 09:50:30 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: c198f8a3a199ba8747819f7f1e45cf602b777529

platforms/web/.env Outdated Show resolved Hide resolved
@kiremitrov123 kiremitrov123 changed the title [IDM-172] - generate passport [IDM-172] - feat: generate passport Sep 3, 2024
@kiremitrov123 kiremitrov123 marked this pull request as ready for review September 11, 2024 09:13
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