Skip to content
This repository has been archived by the owner on Aug 19, 2024. It is now read-only.

[Feature Request] 콘텐츠 다운로드 기능 #1

Open
enif-lee opened this issue Sep 8, 2021 · 5 comments
Open

[Feature Request] 콘텐츠 다운로드 기능 #1

enif-lee opened this issue Sep 8, 2021 · 5 comments

Comments

@enif-lee
Copy link

enif-lee commented Sep 8, 2021

제가 만들어도 괜찮겠죠?

일정 시간 이후 열람이 불가능한 영상이 일부 있어서 곤란하네요 허허

@minuukang
Copy link
Owner

오우쉣 ㅋㅋ 생각도 못했네

@minuukang
Copy link
Owner

일단 동영상을 뚫을 수 없는지 찾아보겠음

@minuukang
Copy link
Owner

minuukang commented Sep 8, 2021

확인결과, 어떻게든 content_id만 찾을 수 있다면 https://commons.ssu.ac.kr/viewer/ssplayer/uniplayer_support/content.php?content_id={content_id} 로 들어가서 미디어 hls 경로들을 가져올 수 있음. 심지어 해당 경로와 미디어 파일들은 전혀 접근권한의 제한이 없음.

마찬가지로 강의 컨텐츠들도 https://commons.ssu.ac.kr/em/{content_id} 형태로 들어가서 바로 다운로드 가능. 이 content_id는 지나간 위에 동영상도 마찬가지로 그냥 볼 수 있음 ㅋㅋ

문제는 이미 지나간 부분인데,, 열람이 불가능한 컨텐츠들은 content_id가 가려져 있어서 찾기 힘듬. 이건 일단 모든 강의 컴포넌트를 로깅 형태로 저장 시켜봐야겠고. 저 링크들이 과연 기간이 지나면 접근할 수 있을까? 검증해봐야됨. 왠지 될것같음;

@minuukang
Copy link
Owner

minuukang commented Sep 8, 2021

로깅을 적용했는데 (e741961) 이상하게도 로깅을 하면 열람이 불가능했던 컴포넌트들의 content_id가 살아있음;;

그래서 보니까 첫 로그인했던 액세스토큰으로 접근하면 잘 살아있고, https://canvas.ssu.ac.kr/learningx/lti/coursebuilder 라는 강의 목록/상세를 만드는 iframe 을 요청하는 폼이 있는데, 해당 폼을 거치면 토큰이 바뀌어서 그 토큰으로 컴포넌트들에 접근하면 열람기간이 지난 컴포넌트는 content_id가 안보여지는거 ㅋㅋ

image

https://canvas.ssu.ac.kr/learningx/dashboard 의 액세스토큰

image

https://canvas.ssu.ac.kr/learningx/lti/coursebuilder 의 액세스토큰

@minukang-benx
Copy link

결론 : 뚫림

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants