195 lines
6.9 KiB
HTML
195 lines
6.9 KiB
HTML
<!doctype html>
|
||
<html lang="en">
|
||
<head>
|
||
<title>FILLIN</title>
|
||
<meta name="description" content="FILLIN">
|
||
<meta name="author" content="FILLIN">
|
||
|
||
<meta charset="utf-8">
|
||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui">
|
||
<!-- Original reveal JS stylesheets-->
|
||
<link rel="stylesheet" href="../reveal.js/dist/reset.css">
|
||
<link rel="stylesheet" href="../reveal.js/dist/reveal.css">
|
||
<link rel="stylesheet" href="../reveal.js/dist/theme/beige.css">
|
||
<!-- custom styles, e.g., imgcredit -->
|
||
<link rel="stylesheet" href="../custom/css/main.css" id="theme">
|
||
<script src="../custom/js/printpdf.js"></script>
|
||
</head>
|
||
<body>
|
||
|
||
<div class="reveal">
|
||
<div class="slides">
|
||
|
||
<section>
|
||
<section>
|
||
<h1>Authentication<br><small>on collaboration hubs</small></h1>
|
||
</section>
|
||
|
||
|
||
<section data-transition="None">
|
||
<h3>Authentication and access</h3>
|
||
|
||
<ul style="font-size:30px">
|
||
There are three things you typically need to set up when using a repository hosting service:
|
||
<li>Have an account on that service</li>
|
||
<li>Create a personal tokens for authentication</li>
|
||
<li>Set up SSH keys to use the SSH protocol for repository access</li>
|
||
</ul>
|
||
</section>
|
||
|
||
<section data-transition="None">
|
||
<h3>Authentication and access</h3>
|
||
|
||
<ul style="font-size:30px">
|
||
<li><strong>Personal tokens for authentication</strong></li>
|
||
<br>
|
||
Whenever DataLad performs actions on a collaboration hub on your behalf
|
||
(such as creating a new repository), you need to supply a token that
|
||
authenticates you.
|
||
|
||
<br><br>
|
||
<img src="../img/branching/github-token-question.png">
|
||
</ul>
|
||
</section>
|
||
|
||
|
||
<section data-transition="None">
|
||
<h3>Authentication and access</h3>
|
||
<ul style="font-size:30px">
|
||
<li><strong>Personal tokens for authentication</strong></li>
|
||
<br>The link takes in the prompt typically takes you to the right place, e.g., on GitHub or Forgejo:
|
||
<div class="r-stack">
|
||
<img class="fragment" src="../img/branching/github-token-generation.png">
|
||
<img class="fragment" src="../img/concepts/forgejo-token2.png">
|
||
</div>
|
||
</ul>
|
||
</section>
|
||
|
||
<section data-transition="None">
|
||
<h3>Authentication and access</h3>
|
||
<ul style="font-size:30px">
|
||
<li><strong>Personal tokens for authentication</strong></li><br>
|
||
Tokens needs appropriate permissions to create or modify repositories.
|
||
The interface varies depending on service.
|
||
<div class="r-stack">
|
||
<img src="../img/branching/github-token-dark.png">
|
||
<img class="fragment" src="../img/concepts/forgejo-token3.png">
|
||
</div>
|
||
</ul>
|
||
</section>
|
||
|
||
|
||
<section data-transition="None">
|
||
<h3>Authentication and access</h3>
|
||
<ul style="font-size:30px">
|
||
<li><strong>Personal tokens for authentication</strong></li>
|
||
<br>Once generated, it is only shown once, so save it to a secure place, <br>
|
||
e.g., a password manager.
|
||
<br>
|
||
<img src="../img/branching/github-token-copy.png"> <br>
|
||
To use it, copy it ...
|
||
</ul>
|
||
</section>
|
||
|
||
|
||
<section data-transition="None">
|
||
<h3>Authentication and access</h3>
|
||
<ul style="font-size:30px">
|
||
<li><strong>Personal tokens for authentication</strong></li>
|
||
<br>... and supply it to the command line:
|
||
<img src="../img/branching/github-token-supplied.png">
|
||
</ul>
|
||
</section>
|
||
|
||
|
||
<section data-transition="None">
|
||
<h3>Authentication and access</h3>
|
||
<ul style="font-size:30px">
|
||
<li><strong>Set up SSH keys to use the SSH protocol for repository access</strong></li><br>
|
||
<li>Different protocols exist to synchronize changes between dataset siblings (e.g., <em>pushing</em> local changes <em>upstream</em>
|
||
or <em>pulling</em>/<em>updating</em> from <em>upstream</em>).
|
||
The most important ones are "HTTPS" and "SSH"</li>
|
||
<li>If you want to use SSH (which can be more convenient), you need an account and an SSH key pair.
|
||
This is a set of two files with character gibberish.
|
||
You create them from the command line with an OS-specific command, e.g.
|
||
<pre><code>ssh-keygen -t ed25519 -C "your_email@example.com"</code></pre>
|
||
(see here for <a href="https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent" target="_blank">instructions for each OS</a>) </li>
|
||
</ul>
|
||
</section>
|
||
|
||
<section data-transition="None">
|
||
<h3>Authentication and access</h3>
|
||
<ul style="font-size:30px">
|
||
<li><strong>Set up SSH keys to use the SSH protocol for repository access</strong></li><br>
|
||
<li>One file is secret, one is public (ends with <em>.pub</em>). </li>
|
||
<li>Add the contents of the public file to your account:
|
||
<img src="../img/branching/GithubSSH.png" ></li>
|
||
</ul>
|
||
</section>
|
||
|
||
|
||
|
||
<section data-transition="None">
|
||
<h3>Authentication and access</h3>
|
||
<ul style="font-size:30px">
|
||
<li><strong>Set up SSH keys to use the SSH protocol for repository access</strong></li><br>
|
||
<li>One file is secret, one is public (ends with <em>.pub</em>). </li>
|
||
<li>Add the contents of the public file to your account:
|
||
<img src="../img/branching/GithubSSH2.png"></li>
|
||
</ul>
|
||
</section>
|
||
|
||
</section>
|
||
</div> <!-- /.slides -->
|
||
</div> <!-- /.reveal -->
|
||
|
||
<script src="../reveal.js/dist/reveal.js"></script>
|
||
<script src="../reveal.js/plugin/notes/notes.js"></script>
|
||
<script src="../reveal.js/plugin/markdown/markdown.js"></script>
|
||
<script src="../reveal.js/plugin/highlight/highlight.js"></script>
|
||
<script src="../custom/js/copy-code.js"></script>
|
||
<script src="../plugin/reveal_external/external/external.js"></script>
|
||
<script>
|
||
// Full list of configuration options available at:
|
||
// https://github.com/hakimel/reveal.js#configuration
|
||
Reveal.initialize({
|
||
// The "normal" size of the presentation, aspect ratio will be preserved
|
||
// when the presentation is scaled to fit different resolutions. Can be
|
||
// specified using percentage units.
|
||
width: 1280,
|
||
height: 960,
|
||
|
||
// Factor of the display size that should remain empty around the content
|
||
margin: 0.1,
|
||
|
||
// Bounds for smallest/largest possible scale to apply to content
|
||
minScale: 0.2,
|
||
maxScale: 1.0,
|
||
|
||
controls: true,
|
||
progress: true,
|
||
history: true,
|
||
center: true,
|
||
|
||
transition: 'slide', // none/fade/slide/convex/concave/zoom
|
||
|
||
// Optional reveal.js plugins
|
||
plugins: [ RevealExternal, RevealMarkdown, RevealHighlight, RevealNotes ]
|
||
|
||
});
|
||
</script>
|
||
|
||
<!-- A footer with a "1" and "home" button to get back to the first slide and the index page -->
|
||
<div id="hidden" style="display:none;">
|
||
<div id="header">
|
||
<div id="footer-left"><a href="#0">1️⃣</a></div>
|
||
<div id="footer-right"><a href="../index.html">🏠</a></div>
|
||
</div>
|
||
</div>
|
||
<script src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
|
||
<script src="../custom/js/headerandfooter.js"></script>
|
||
|
||
</body>
|
||
</html>
|