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

Add setting to change TTL on AccessVerifier #1941

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Mar 21, 2022

  1. Add setting to change ttl on AccessVerifier

    5 minutes sometimes just isn't enough. This makes it so it is configurable and not hard coded.
    
    Test Plan:
    
    * Add a video to a course
    * insert a video tag into the html of a page. ie:
    ```
    <p><video style="border: 2px solid black;" width="450" height="225" controls="controls">
    <source src="/courses/<course_id>/files/<file_id>/download" /></video></p>
    ```
    * Inspect the network traffic while watching the video.
    * Obtain the jwt used to download the video.
    * Inspect that jwt and the exp should be the minutes out of what ever is set in the Setting, default 5 minutes.
    bfcoder committed Mar 21, 2022
    Configuration menu
    Copy the full SHA
    3426305 View commit details
    Browse the repository at this point in the history