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

Scorm XBlock handle to serve SCORM content from a private S3 bucket #5

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

naumanshafi
Copy link

Create the scorm_view function to serve SCORM content from a private S3 bucket using pre-signed URLs

Previously, the scorm_view function in the XBlock handler accessed files directly from the S3 bucket without any authentication, which posed a security risk. To address this issue, we updated the function to use the get_presigned_url function, which generates a pre-signed URL for accessing the file in the private S3 bucket. We then used this pre-signed URL to retrieve the file content and return it with the appropriate content type.

This update ensures that SCORM content is served securely from a private S3 bucket using pre-signed URLs, improving the overall security of the XBlock handler.

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