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

fix(FEC-14248): Anonymous session based on if ks contain user #259

Merged

Conversation

roeedean
Copy link
Contributor

@roeedean roeedean commented Feb 8, 2025

Description of the Changes

  • Added a new service for Kaltura User Get using it inside the OVPProvider
  • Concentrated the dealing with the flag config.session._isAnonymous in a single place in the file, instead of several places.
  • Fixed the flag config.session._isAnonymous logic:
    until now, config.session._isAnonymous was set to 'false' for every session that has ks (even if it's anonymous ks).
    The fix insure that the flag config.session._isAnonymous will be set to 'false' only for sessions that have ks containing a valid user inside, otherwise the flag will be set to 'true'.

Related PR: kaltura/kaltura-player-js#916

FEC-14248

test/src/k-provider/ovp/provider.spec.js Outdated Show resolved Hide resolved
test/src/k-provider/ovp/provider.spec.js Outdated Show resolved Hide resolved
test/src/k-provider/ovp/provider.spec.js Outdated Show resolved Hide resolved
test/src/k-provider/ovp/provider.spec.js Show resolved Hide resolved
test/src/k-provider/ovp/provider.spec.js Outdated Show resolved Hide resolved
test/src/k-provider/ovp/provider.spec.js Outdated Show resolved Hide resolved
test/src/k-provider/ovp/provider.spec.js Outdated Show resolved Hide resolved
test/src/k-provider/ovp/provider.spec.js Outdated Show resolved Hide resolved
src/k-provider/ovp/provider.ts Show resolved Hide resolved
@roeedean roeedean merged commit ea59451 into master Feb 10, 2025
11 checks passed
@roeedean roeedean deleted the FEC-14248-fix-_isAnonimous-based-on-ks-contain-user-providers branch February 10, 2025 10:37
roeedean added a commit to kaltura/kaltura-player-js that referenced this pull request Feb 10, 2025
roeedean added a commit that referenced this pull request Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants