forked from rsdoiel/archivesspace-api-workshop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path24-ArchivesSpace-API-Workshop.html
32 lines (26 loc) · 1.1 KB
/
24-ArchivesSpace-API-Workshop.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<!DOCTYPE html>
<html>
<head>
<link href="css/slides.css" rel="stylesheet" />
</head>
<body>
<nav>
<a id="start-slide" rel="nav" href="00-ArchivesSpace-API-Workshop.html" title="Return to start of presentation">Start</a>
<a id="prev-slide" rel="nav" href="23-ArchivesSpace-API-Workshop.html" title="Previous slide">Prev</a>
<a id="next-slide" rel="nav" href="25-ArchivesSpace-API-Workshop.html" title="Next slide">Next</a>
</nav>
<section><h1>3. Authentication</h1>
<h2>Send our username and password</h2>
<p>We need to pass our username and password in our request.
We need to keep track of the response.</p>
<p>Close the text editor and go back in the shell.</p>
<pre><code class="language-python"> username = input('username (e.g. admin): ')
password = getpass.getpass('password: ')
</code></pre>
<p>We want to use getpass.getpass(‘password: ‘) so the
password doesn’t get echoed to the screen. IDLE will still echo the password, but you can ignore this for testing
and development.</p>
</section>
<script type="text/javascript" src="js/keyboard-nav.js"></script>
</body>
</html>