forked from polimediaupv/paella-opencast
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow test-server to serve static files and mock auth results
- Loading branch information
Showing
4 changed files
with
70 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"_comment": [ | ||
"This is an example auth result json response of the kind returned by /search/epiosde.json requests. ", | ||
"To have the test server return this rather than proxying the request, make a copy of this example ", | ||
"and name it according to the mpid, e.g., 3fb07e12-458a-4119-b4ec-a9f9f28146da&.json. If the ", | ||
"doneUrlCookie and dceLocation values are important you can extract the appropriate values from ", | ||
"a real request in your browser's dev tools network tab." | ||
], | ||
"dce-auth-results": { | ||
"dceErrorMessage": "You must log in order to gain access to /2017/02/29997/L01", | ||
"dceUserId": "not_available", | ||
"dceUserGroups": "not_available", | ||
"dceResource": "not_available", | ||
"dceReturnStatus": 401, | ||
"doneUrlCookie": "encrypted-done-url-cookie-value", | ||
"dceLocation": "https://cm.auth.example.harvard.edu/login/cas.mhtml?done=[done-url]&logLevel=DEBUG&error=[errmsg]", | ||
"dceUserIdType": "not_available" | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<!DOCTYPE html SYSTEM "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<title>Example static file</title> | ||
</head> | ||
<body> | ||
<div class="show-content user_content clearfix enhanced"> | ||
<h1 class="page-title">Week 3 Videos on Positive Emotions</h1> | ||
<p>Example of embedding multiple players in a single page with varying start/end times.</p> | ||
<h2>Part 1</h2> | ||
<div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;"><iframe | ||
style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;" | ||
src="https://paella-test-server.harvard.edu:3000/engage/player/watch.html?id=3fb07e12-458a-4119-b4ec-a9f9f28146da&start=100&end=600&logLevel=DEBUG" | ||
allowfullscreen="allowfullscreen" width="300" height="150"></iframe></div> | ||
<h2>Part 2</h2> | ||
<div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;"><iframe | ||
style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;" | ||
src="https://paella-test-server.harvard.edu:3000/engage/player/watch.html?id=ebff521e-f1ff-4f33-bae2-79cba4d11d23&start=200&end=700&logLevel=DEBUG" | ||
allowfullscreen="allowfullscreen" width="300" height="150"></iframe></div> | ||
<h2>Part 3</h2> | ||
<div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;"><iframe | ||
style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;" | ||
src="https://paella-test-server.harvard.edu:3000/engage/player/watch.html?id=20015860-5332-4e86-a179-826ef37e0bf1&start=300&end=800&logLevel=DEBUG" | ||
allowfullscreen="allowfullscreen" width="300" height="150"></iframe></div> | ||
<h2>Part 4</h2> | ||
<div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;"><iframe | ||
style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;" | ||
src="https://paella-test-server.harvard.edu:3000/engage/player/watch.html?id=96aa4187-0f57-4934-bb75-174af497ec6a&start=400&end=900&logLevel=DEBUG" | ||
allowfullscreen="allowfullscreen" width="300" height="150"></iframe></div> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters