Skip to content

Commit

Permalink
short explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
rpwagner committed May 14, 2024
1 parent 0b6e2eb commit 777fb1b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
Binary file added Architecture.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Architecture.pptx
Binary file not shown.
11 changes: 11 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,17 @@ <h2>Sample Chart with Restricted Data</h2>
<canvas id="chart"></canvas>
</div>

<div style="width: 50%">
<h2>How this Works</h2>

<ol>
<li>Research logs in to Globus and Globus Auth returns an OAuth access token which is stored in the browser.</li>
<li>Once authenticated, a script in this page requests a JSON file from a Globus collection over HTTPS. Globus checks that the researcher is a member of the <a href="https://app.globus.org/groups/260da91f-3496-11ed-b941-972795fc9504/join">Serverless Data Users Globus Group</a>. If they are, the collection returns the file.</li>
<li>When the JSON file is loaded in the browser <a href="https://www.chartjs.org/docs/latest/getting-started/">Chart.js</a> is used to render the bar chart.</li>
</ol>
<img src="Architecture.png" style="border: 5px solid #555" height="auto"/>
</div>

<script>
/* Collection with the restricted data */
const collection = '385d3079-5121-40bc-a52f-055296497631';
Expand Down

0 comments on commit 777fb1b

Please sign in to comment.